Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-31 17:29:51

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

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

#2 2008-03-31 21:16:41

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

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

#3 2008-03-31 23:08:36

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

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

#4 2008-04-01 04:29:49

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

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

#5 2008-04-01 14:47:58

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

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

Board footer

Powered by FluxBB