tqExpert Help

Implement Paging for Dynamic Content

Paging is the ability to display extensive content on multiple pages.  The paging tqTag works together with the content tqTag dynamicGrow parameter to increase the number of pages dynamically according to the actual number of content items (for example, search results). You can use the paging tqTag only in an inner template.

To implement paging for dynamic content

  1. In an inner template, code a content tqTag according to content, specifying the dynamicGrow parameter.
    NOTE: The title parameter specifies the text displayed on the Site Manager floating command button.
  2. Add the paging tqTag according to paging, specifying the content name value for the pagingTag parameter.
  3. Within the paging taTag, implement some or all of the following tqOptions:
  4. Make sure that you registered the template in tqTag Dashboard, as described in Register Templates.
  5. Make sure that the updated version of the template is uploaded to the Website server, as described in Upload Templates and Related Files.
  6. Make sure that you are logged in to siteAddress/tqtag, as described in Log in to tqTag Site Manager.
  7. If the Languages and Categories navigation panel is not displayed, click Content module group icon.
  8. (if needed) Create the Category to which you are assigning the content item, as described in Create Website Categories.
  9. Create the content items, as described in Create Content Items.
  10. (if needed) Perform Assign Inner Templates to Categories.
  11. Perform Assign Content Items to Categories.
  12. If prompted, you can specify the display order of the content items.

Example - Paging for Dynamic Content

<tqtag name="content0" type="content" maxItems="50" dynamicGrow >
    <a href="">@title@</a><br />

<tqtag name="paging1" type="paging" pagingTag="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>

User Notes

  Add Note

Topic: Implement Paging for Dynamic Content