Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-27 03:25:17

minimal design
Member
Registered: 2006-10-15
Posts: 38

Associate file downloads to specific articles?

I’m pretty much trying to emulate the <txp:article_image /> but for “files” instead of “images” – is that doable?

I have a “projects” section where I want each article to link to a specific download while taking advantage of the “size of file” and “number of times downloaded” features within the article list…

Do I have to call the file by its ID within the body of the article? Or is there a better way?

Thanks for any help!

Offline

#2 2006-11-27 07:22:29

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,530
Website GitHub Twitter

Re: Associate file downloads to specific articles?

The easiest way is to call the file id in the article body directly,

another solution is to use a custom_field to put the file id and in a form call the file tag using a tag in tag construction (explained here or using this plugin )

Good luck

Offline

#3 2006-11-27 08:27:38

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Associate file downloads to specific articles?

cough, cough

I need to get some Vicks. ;>

Offline

#4 2006-12-01 01:52:14

minimal design
Member
Registered: 2006-10-15
Posts: 38

Re: Associate file downloads to specific articles?

thanks for the links, this plug-in looks exactly like what I was looking to do – I can’t get it to work though for some reason. I explained what happens in the plug-in post itself.

Thanks anyway! :)

Offline

Board footer

Powered by FluxBB