Softany Txt2Htm2Chm Reference Previous Topic Next Topic

FAQ Templates

FAQ format is a special format because all topics are in one file. Its ContentTemplate has different meaning from the other formats. The program picks the texts between "<!--TopicTemplateBegin-->" and "<!--TopicTemplateEnd-->" as template to make all topics and then insert them into the position originally occupied by the two tags and their texts.

To get a template's template, copy from (installation folder)\tst\faq\.

Legal tags in FAQ format:

TagDescription
($PROJECTTITLE$)Project Title.
($CHARSET$)Charset.
($FAQLINKLIST$)The contents with hyperlinks in FAQ format.
($FAQTITLE$)The title of the topic in FAQ Format.
($FAQCONTENT$)The content of the topic in FAQ Format.


Example

A ContentTemplate in a FAQ template:

<html>
<head>
<title>($PROJECTTITLE$)</title>
<meta http-equiv="Content-Type" content="text/html; charset=($CHARSET$)">
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>
<p><a name="TOP"></a><font class="ProjectTitle">($PROJECTTITLE$)</font></p>
<p>
($FAQLINKLIST$)
</p>
<!--TopicTemplateBegin-->
<p><font class="title">($FAQTITLE$)</font></p>
<p>
($FAQCONTENT$)
</p>
<p align="right">[<a href="#TOP">TOP</a>]</p>
<!--TopicTemplateEnd-->
<p>&nbsp;</p></body>
</html>



Previous Topic Next Topic