Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-12 02:59:20

debeljko
Member
From: Belgrade
Registered: 2007-07-02
Posts: 15
Website

file download issue

Hi,
one noob question if you don’t mind;

How do I put link to last uploaded file to specific category underneath an image?

<a href=”?”><img src=“graphic/blah.png” width=“60” height=“60” title=“some file” /></a>

It would be easy with ? = <txp:file_download_link category=”blah” limit=”1” />

But since there’s no such attributes for this tag I’d like to know the way.

cheers, debeljko

Offline

#2 2007-11-12 03:20:52

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: file download issue

Offline

#3 2007-11-12 06:41:36

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: file download issue

And, in example:

<txp:file_download_list limit="1" sort="id asc" />

Cheers!

Offline

#4 2007-11-12 13:13:17

debeljko
Member
From: Belgrade
Registered: 2007-07-02
Posts: 15
Website

Re: file download issue

Hi jm, Gocom,

Yes, I tried with ‘file_download_list’ but this generates both, opening and closing <a> tag and whole bunch of stuff like…

file:
<a href=“http://blah.pdf [97.93KB]</a>
<br />
Category: blah<br />
download: 4”>

….which I don’t know how to remove and even less to nest <img> within.

Offline

#5 2007-11-12 16:04:48

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: file download issue

Edit the files form:

<txp:file_download_link>
  <img src="graphic/blah.png" title="<txp:file_download_name />" />
</txp:file_download_link>

Offline

#6 2007-11-12 17:03:15

debeljko
Member
From: Belgrade
Registered: 2007-07-02
Posts: 15
Website

Re: file download issue

Thanx a lot jm! It works.

Offline

Board footer

Powered by FluxBB