Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-11-09 02:50:42

NicChen00
Member
From: Edmonton
Registered: 2011-08-05
Posts: 15
Website

how to display files from a specific category

I’m trying to display the download link from files that i assigned the category “clients” to. The code I’m trying is:

<txp:if_category name=“clients” type=“file” >
<txp:file_download_name />
<txp:file_download_link />
</txp:if_category>

but nothing comes up. any clue why this isn’t working?

Offline

#2 2011-11-09 06:40:39

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,258
Website GitHub Mastodon Twitter

Re: how to display files from a specific category

Hi Nicholas

try

<txp:file_download_list limit="10" break="li" wraptag="ul" sort="downloads desc" category="clients">
<txp:file_download_link><txp:file_download_name /></txp:file_download_link>
</txp:file_download_list>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB