Search:
tqExpert Help
print
|
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

linkToAlbum

When you enable a photo gallery, you use the linkToAlbum tqTag for either of the following:
  • To list the albums in a photo gallery
  • To display search results among photo galleries

linkToAlbum - Syntax

<tqtag name="albums0type="linkToAlbummaxItems="4" [dynamicGrow] [pageSearchResults] >
...
</tqtag>

linkToAlbum - Parameters

Parameter Name Type Mandatory Strict | Transitional Case Sensitive Description
type Text + S + must be linkToAlbum
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
dynamicGrow   - T + dynamicGrow tells the system to copy the tqtag for each item retrieved maxItems numbers of times.
maxItems Number - S   The max number of albums to display in a page
pageSearchResults   - T + pageSearchResults is used to display the search results items
 

linkToAlbum - Local Variables

Name Type Size Description
addDate datetime   The datetime the section was created or last modified. can be formated using 2009-01-09 12:30:18df:[format]!
author text 1024 The name of the person uploaded the album
authorEmail text 350 The email of the album's author
description text 65535 Gallery description
galleryID number 10 Gallery database id
id number 12 Glbum database id
image text 1024 Default album image
lastPicDate datetime   Date and time last picture uploaded (can be used like @lastPicDate@df:%d/%m/%Y!
link text 1024 Link to the album page
numOfPics number 6 Number of active pictures in album
numViews number 6 Number of time the album was viewed
title text 100 Album Name

linkToAlbum - Examples

Example 1 - basic use of linkToAlbum tqtag
<ul>
    
<tqtag name="albums0type="linkToAlbummaxItems="4dynamicGrow >
    <li>
        <div><a href="@link@">@title@</a></div>
        <img src="@image@" alt="" />
        <div>@numFiles@ files</div>
        <div>@description@ <a href="@link@">view album</a></div>
    </li>
    </tqtag>

</ul>

Example 2 - using linkToAlbum tqtag for albums search results
<ul>
<tqtag name="albums0type="linkToAlbummaxItems="4dynamicGrow pageSearchResults >
    <li>
        <div><a href="@link@">@title@</a></div>
        <img src="@image@" alt="" />
        <div>@description@<a href="@link@">View album</a></div>
    </li>
    </tqtag>

</ul>


Example 3 - using linkToAlbum with paging tqtag to divide list of albums into pages
<tqtag name="paging0type="pagingpagingTag="albums0" >
    <tqoption type="galleryInfo" alternative0="">{!<h2>total of @numOfAlbums@ albums in @numberOfPages@ pages</h2>!}0</tqoption>
    <div>
        <tqoption type="prevAlbumPage" alternative0="">{!<a href="@prevItemLink@" class="prevArr"></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">!}0</tqoption></a>
    </div>
</tqtag>

<ul>
    
<tqtag name="albums0type="linkToAlbummaxItems="4dynamicGrow pageSearchResults >
    <li>
        <div><a href="@link@">@title@</a></div>
        <img src="@image@" alt="" />
        <div>@description@<a href="@link@">View album</a></div>
    </li>
    </tqtag>

</ul>

linkToAlbum - tqOptions

Within the linkToAlbum tqtag you can use the following tqoptions: head, if, lastItemInRow, tail.
Related tqoptions used in other tqtags: albumsListOfPages, galleryInfo, nextAlbumPage, prevAlbumPage.

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