Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-10-08 13:10:23

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 581

Adding a description to each file in a File Download List [Solved]

I need to output a list of files using the <txp:file_download_list /> tag and underneath each link in the list I’d like to add a description. Is there an easy way to do this? I was wondering if I could use the Description field in the Files tab but couldn’t see any options in the tag reference for doing so. http://textpattern.net/wiki/index.php?title=file_download_list.

Last edited by Algaris (2012-10-08 13:33:03)

Offline

#2 2012-10-08 13:15:14

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,949
Website GitHub

Re: Adding a description to each file in a File Download List [Solved]

How about using <txp:file_download_list> as a container and putting file_download_description into action?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2012-10-08 13:32:49

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 581

Re: Adding a description to each file in a File Download List [Solved]

Steffman to the rescue! Thanks for pointing me in the right direction. I fixed it with the following code.

<txp:file_download_list category="articles-of-interest" limit="9999999">
	<txp:file_download_link><txp:file_download_name title="1" /></txp:file_download_link>
	<txp:file_download_description wraptag="p" />
</txp:file_download_list>

Offline

Board footer

Powered by FluxBB