Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
Offline
Offline
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
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
Re: file download issue
Thanx a lot jm! It works.
Offline
Pages: 1