Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
file_download_link as Single Tag too
Can tag file_download_link work as single tag and output just a link to selected file? The using of such can be like this:
This <a href="<txp:file_download_link id="1" />">Link to file</a>
should produce <a href="http://site.by/link_to_file_id9">Link to file</a>
This is the same as <txp:permlink />
works.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: file_download_link as Single Tag too
No need to add this feature, it is present in the current release (and probably some of the older ones, too). I’ve amended the Textbook entry accordingly.
Offline
Re: file_download_link as Single Tag too
Oh… As we see fresh help is very useful. Thanks!
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: file_download_link as Single Tag too
P.S. It seems that Txp:file download name needs actual description too – taghandlers.php
shows that there are class
, wraptag
and title
attributes which aren’t mentioned in the textbook
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: file_download_link as Single Tag too
the_ghost wrote:
P.S. It seems that Txp:file download name needs actual description too – taghandlers.php shows that there are class, wraptag and title attributes which aren’t mentioned in the textbook
If you think so and find hole from the documention, why don’t you do the editing by yourself? As it’s a Wiki not a anykind of magical article, that is updated by somesort of staff that gets paid… ;)
But in return, maybe it’s better that it isn’t added nor updated, as file_download_name doesn’t have any attributes ;) – it just outputs plain name text string.
Last edited by Gocom (2008-04-01 15:02:04)
Offline
#6 2008-04-01 15:48:40
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: file_download_link as Single Tag too
file_download_name doesn’t have attributes, you must’ve been looking at the tag after it, file_download_category. :)
Offline
Pages: 1