Knowledgebase

Article number: 301391

Auto-updating Download Lists (by folder) within Sitekit CMS

This article describes the use of XML in Sitekit CMS to output a folder of some or all downloads.

It is possible to use the following XML to output a folder of some or all downloads in HTML:

<downloads folder="foldername"></downloads>

n.b. Self-closing tags are not supported for the downloads tag.

The following attributes can be specified:

folder=""

This allows specification of which folder to display. If not specified, all downloads will be shown.

folder="/"

Show root folder only.

folder="/folder1,/folder2"

Specify multiple folders by comma separating them.

OverrideHeaderAndFooter

By default, the Header and Footer used is specified in the DownloadsHeaderText and DownloadsFooterText variable blocks. This can be overridden using plain text with this variable set to "True" followed by the use of one (or two) of the next two variables.

OverrideHeader

By default, the Header used is specified in the DownloadsHeaderText variable block - this can be overridden using plain text with this variable.

OverrideFooter

By default, the Footer used is specified in the DownloadsFooterText variable block - this can be overridden using plain text with this variable.

ShowGetPDFReaderLink

If one or more of your downloads are .pdf format, the Download Adobe Acrobat™ icon link will be shown. Set this variable to "false" if you prefer not to show the icon link.

 

Here are some examples:

<downloads></downloads>

<downloads folder="/white-papers"></downloads>

<downloads folder="/white-papers,/case-studies" ShowGetPDFReaderLink="no"></downloads>

<downloads folder="/docs/white-papers,/case-studies" OverrideHeaderAndFooter="true" OverrideHeader="Download Section"></downloads>

<downloads folder="/white-papers,/case-studies" OverrideHeaderAndFooter="true" OverrideFooter="Please select a download from above"></downloads>

Notes:

  • It is important that "<COMMENT>DOWNLOAD</COMMENT>" and "<downloads></downloads>" are not mixed on the same page, as this will likely create an error.

Related questions