tqExpert Help


The loop tqTag enables efficient implementation of a series of tqTags, according to the values of the list and trigger parameters.

loop - Syntax

<tqtag name="trigger1type="looptrigger="daysInMonth | monthInYear | list" [list="a,1,b,2"] >

loop - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be loop
name Text + S + should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed
contentTag Text specify by which template content tqTag to filter
list alpha- numeric - S + list of values separated by comma. will only work if trigger="list"
trigger Text - S  + three option values:
1. daysInMonth - will execute the child tqtags for every day in the month received via the rul (month=5&year=2008)
2. monthInYear - will execute the child tqtags for every month in the year received via the url (year=2008)
3. list - will execute the child tqtags for each value declared in the list parameter

loop - Local Variables

Name Type Size Description
listValue alphanumeric  200 the value looped inside the list parameter

loop - Examples

Example 1 - basic use of loop tqtag to display active content in tqtag content
<tqtag name="trigger1type="looptrigger="monthInYear" >
    <tqtag name="content1type="contentmaxItems="2dynamicGrow >


Example 2 - more advanced usage of loop (filter) with content and tqoption for tail and head. (Based on template 349)
<tqtag name="trigger1type="filtertrigger="monthInYear" >
    <tqtag name="content1type="contentmaxItems="2dynamicGrow >
        <tqoption type="head" alternative0="">{!<h2>@sectionName@</h2><ul>!}0</tqoption>
            <div><a href="@link@">@title@</a></div>
                Creation Date: @addDate@df:%d/%m/%Y!
                From:<a href="@authorEmail@"> @author@ </a>
            <div>@description@ <a href="@link@"></a></div>
        <tqoption type="tail" alternative0="">{!</ul>!}0</tqoption>


loop - tqOptions

There are no tqOptions available for this tqTag.

loop - Templates

The templates below implement this tqTag. After you click a link, use your browser commands to view the page source.

User Notes

  Add Note

Topic: loop