Search:
tqExpert Help
print
|
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

paging

You use the paging tqTag to enable navigation through extensive content, albums, search results, and so forth on multiple Web pages.

paging - Syntax

<tqtag name="paging0type="pagingpagingTag="content0" >
...
</tqtag>

paging - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be paging
name Text + S + should be unique tqtag name in the template. no spaces/commas/single quote/double quotes allowed
title Alpha Numeric + S - The title of the tqtag. This title will be presented only at the back-end system.  no spaces/commas/single quote/double quotes allowed
pagingTag Text + S Represents the tag you wish to create paging for
 

paging - Local Variables

irrelevant for this tqtag
 

paging - Examples

Example 1 - use of paging tqtag for paging via content tqtag
<tqtag name="paging2type="pagingpagingTag="content0" >
<tqoption type="prevContentPage" alternative0="">{!<a href="@prevItemLink@"><</a>!}0</tqoption>
    <tqoption type="contentListOfPages" pagesBeforeCurrent="5" pagesAfterCurrent="5" alternative0="">{!<a href="@linkToPageNumber@" class="c@position@">@pageNumber@</a>!}0</tqoption>
    <tqoption type="nextContentPage" alternative0="">{!<a href="@nextItemLink@">></a>!}0</tqoption>
</tqtag>
<tqtag name="content0type="contentmaxItems="50dynamicGrow >
    <a href="@link@">@title@</a><br />
</tqtag>


Example 2 - use of paging tag via linkToAlbum tqtag
<tqtag name="paging0type="pagingpagingTag="albums0" >
    <tqoption type="galleryInfo" alternative0="">{!<h2>@numOfAlbums@ albums in- @numberOfPages@ pages</h2>!}0</tqoption>
    <tqoption type="prevAlbumPage" alternative0="">{!<a href="@prevItemLink@" class="prevArr">Prev</a>!}0</tqoption>
    <tqoption type="albumsListOfPages" pagesBeforeCurrent="7" pagesAfterCurrent="8" alternative0="">{!<a href="@linkToPageNumber@" class="c@position@">@pageNumber@</a>!}0</tqoption>
    <tqoption type="nextAlbumPage" alternative0="">{!<a href="@nextItemLink@" class="nextArr">Next</a>!}0</tqoption>
</tqtag>
<ul>
<tqtag name="albums0type="linkToAlbummaxItems="4dynamicGrow >
    <li>
        <div><a href="@link@">@title@</a></div>
        <img src="@image@" alt="" />
        <div>@description@<a href="@link@">Go To Album Page</a></div>
    </li>
</tqtag>
</ul>

Example 3 - use of paging tqtag via productList tqtag
<div>
    <span>page:</span>
<tqtag name="paging0type="pagingpagingTag="product0" >
        <tqoption type="prevContentPage" alternative0=""><a href="@prevItemLink@">PrevPage</a></tqoption>
        <tqoption type="contentListOfPages" pagesBeforeCurrent="3" pagesAfterCurrent="4" alternative0="">{!<a href="@linkToPageNumber@" class="@position@">@pageNumber@</a>!}0</tqoption>
        <tqoption type="nextContentPage" alternative0=""><a href="@nextItemLink@">NextPage</a></tqoption>
    </tqtag>
</div>
<table>
    <tr>
        <th>Catalog no.</th>
        <th>Item name</th>
    </tr>
<tqtag name="product0type="productListmaxItems="6dynamicGrow >
    <tr>
     <td>@lineItemCatalogID@</td>
     <td>@productName@</td>
    </tr>
    </tqtag>
</table>

Example 4 - use of paging tqtag via downloads tqtag
<tqtag name="paging0type="pagingpagingTag="downloads0" >
    <tqoption type="prevContentPage" alternative0=""><a href="@prevItemLink@">Prev</a></tqoption>
    <tqoption type="contentListOfPages" pagesBeforeCurrent="9" pagesAfterCurrent="10" alternative0="">{!<a href="@linkToPageNumber@" class="c@position@">@pageNumber@</a>!}0</tqoption>
    <tqoption type="nextContentPage" alternative0=""><a href="@nextItemLink@">Next</a></tqoption>
</tqtag>
<ul>
<li>
    <div>FileName</div>
    <div>Description</div>
    <div>Version</div>
    <div># of downloads</div>
    <div>Creation Date</div></li>
<tqtag name="downloads0type="downloadsmaxItems="10title="רשימת קבצים להורדהdynamicGrow >
<li class="li@oddOrEven@">
    <div><a href="@link@">@title@ </a></div>
    <div>@versionContent@ </div>
    <div>@versionTitle@ </div>
    <div>@numDownloads@ </div>
    <div>@versionAddDate@df:%d/%m/%Y! </div>
</li>
</tqtag>

paging - tqOptions

paging - 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: paging