You use the content tqTag to enable tqAdmins (with suitable permissions) to specify and update text content (and associated graphic content) in Website pages. In addition, content enables you to display search results. The many parameters and local variables allow for varied implementation options.
<tqtag name="objectName" type="content" title="caption for the user" maxItems="1" [dynamicGrow] [itemsPerRow="2"] [rowDelimiter="tr"] [alternativeTag="loginBoxAlternative" alternativeCondition="isAuthRequired"] [pageMainContent] [pageSearchResults] [pendingTag="content0"] >
...
</tqtag>
Example 1 - very basic use of content tqtag without dynamicgrow
<tqtag name="objectName" type="content" maxItems="1" title="caption for the user" >
<div><h2>@title</h2></div>
<div>@content@</div>
</tqtag>
Example 2 - very basic use of content tqtag with dynamicgrow
<tqtag name="objectName" type="content" maxItems="5" title="caption for the user" >
<div><h2>@title</h2></div>
<div><a href="@link@">@description@</a></div>
</tqtag>
Example 3 - very basic use of content tqtag with dynamicgrow
<tqtag name="objectName" type="content" maxItems="5" title="caption for the user" dynamicGrow >
<div><h2>@title</h2></div>
<div><a href="@link@">@description@</a></div>
</tqtag>
Example 4 - content tqtag with dynamicgrow and rows delimiters (based on template 77)
<table>
<tr>
<tqtag name="content0" type="content" maxItems="999" title="content item" dynamicGrow itemsPerRow="2" rowDelimiter="tr" >
<td valign="top"><div id="itemImage">
<a href="@link@"><img src="@image@" alt="@title@" width="150" height="150" /></a>
</td>
<td valign="top" align="right">
<a href="@link@" ><b>@title@</b></a><br />
@content@
</td>
</tqtag>
</tr>
</table>
Example 5 - content tqtag for item's page that knows to display the content item for the pageMainContent feature (based on template 229)
<tqtag name="pageItemContent" type="content" pageMainContent >
<p>@content@</p>
</tqtag>
Example 6 - basic use of content tqtag for search results
<tqtag name="content0" type="content" maxItems="10" dynamicGrow pageSearchResults >
<div>
<a href="@link@">@title@</a></div>
</tqtag>
Example 7 - advanced use content tqtag for search results with text filtering and date format (based on template 364)
<tqtag name="content0" type="content" maxItems="10" dynamicGrow pageSearchResults >
<tr>
<td>@counter@</td>
<td><div class="itemTTL"><a href="@link@">@title@</a></div></td>
<td><a href="?section=249cl:filterQuery!&filterQuery=author='@author@'">@author@</a></td>
<td><a href="?section=249cl:filterQuery!&filterQuery=sectionID=@sectionID@">@sectionName@</a></td>
<td><div class="itemText">@description@ <a href="@link@" class="readMore"></a></div></td>
<td><a href="?section=249cl:filterQuery!&filterQuery=DATE_FORMAT(tbl.addDate,'%d/%m/%Y')='@addDate@df:%d/%m/%Y!'">@addDate@df:%d/%m/%Y!</a></td>
</tr>
</tqtag>
Example 8 - tqtag with alternative condition - notice that the alternative tqtag must be before the content tqtag that calls him (based on template 453)
<tqtag name="loginBoxAlternative" type="alternative" >
please login ... (login form maybe a good idea over here)
</tqtag>
<tqtag name="mainContent" type="content" maxItems="1" title="mainPageContent" alternativeTag="loginBoxAlternative" alternativeCondition="isAuthRequired" >
<h1>@title@</h1>
<div class="N11">@description@</div>
<div class="txtHold">@content@</div>
<div class="clear"></div>
</tqtag>
for a list of alternatives please follow the available alternatives for this tqtag in this page
Example 9 - tqtag content that should run only after another tqtag has run with the pendingTag property (based on template 379)
<tqtag name="content1" type="content" maxItems="1" title="run after some othertqtag" dynamicGrow pendingTag="content0" >
<a href="@link@" class="higherPrice">Same specs; higher price</a>
</tqtag>
Within the
content tqtag you can use the following tqoptions:
contentListOfPages ,
head,
if,
lastItemInRow,
subItemNextPage,
subItemPrevPage,
subItemsInfo,
tail,
tooltip.
Related tqoptions used in other tqtags:
contentListOfPages,
nextContentPage,
prevContentPage.