tqExpert Help


The downloads tqTag enables downloads from a Website page.  It is effective only when the downloadVersions tqTag is also implemented.

downloads - Syntax

<tqtag name="downloads0type="downloadstitle="files to downloadmaxItems="10dynamicGrow pageSearchResults pageMainDownload >

downloads - Parameters

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

downloads - Local Variables

Name Type Size Description
addDate datetime   The datetime the file was uploaded. can be formated using 2009-01-09 10:40:26df:[format]!
adminID number 5 The ezadmin3 user who created the download file (this is not the user who uploaded the different versions of the file)
content text 65535 Descriptive information about the download file.
creator text 1024 File creator name (the person or company that produced the file) 
image text ~100 The url to the image represent the file
link text ~100 Url to the download page 
numDownloads number 10 Number of times the file was downloaded 
numResponses number 6  Number of users provided talkback on the picture
oddOrEven text 5 return odd or even alternately when dynamicGrow is used
position text   first - for first file
firstSelected - incase first file is current file
2...n-1 - for all files (not including first and last)
selected - current selected file (if not first or last file)
last - for last file
lastSelected - incase last file is current file
requierments text 65535  Pre-requirments (like operating system version, os type, office version etc.)
sectionID number 5 file's sectionID
showOrder number 6 Represent the order number of the file in the section, this number is not a running number.
title text 250 file title 
versionActive text 3 Returns "on" when the last version of the file is active and "off" if not 
versionAddDate datetime   The datetime the last version of the file was uploaded. can be formated using 2009-01-09 10:40:26df:[format]!
versionContent text 65535 Last file version content 
versionTitle text 100  Last file version title

downloads - Examples

Example 1 - use of downloads tqtag
<div class="column2">
        <li class="top"><div class="col1">file title</div><div class="col2">description</div><div class="col3">version</div><div class="col4"># downloads</div><div class="col5">version date</div></li>      
<tqtag name="downloads0type="downloadsmaxItems="10title="List of Files for DownloadingdynamicGrow pageSearchResults >
            <div><a href="@link@">@title@ </a></div>
            <div>@versionContent@ </div>
            <div>@versionTitle@ </div>
            <div>@numDownloads@ </div>
            <div>@versionAddDate@df:%d/%m/%Y! </div>

downloads - tqOptions

Within the downloads tqtag you can use the following tqoptions: head, if, lastItemInRow, tail.

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