Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-21 16:23:48

toki
New Member
Registered: 2006-01-29
Posts: 3

List of all files which can be downloaded

Hi all. This is my first post here so I’m a little bit new around here.

Anyway I was looking for something like static page with all files from special category so the users are able to download them. This doesn’t work for me:

<txp:file_download_link>
<txp:file_download_name /> [<txp:file_download_size format="auto" decimals="2" />]
</txp:file_download_link><br />
<txp:file_download_category /><br />
<txp:file_download_downloads />

I don’t know why but it doesn’t.

Please help me to resolve this problem. I just want to let the users to download some files from my site (something similar to the DOWNLOAD / files section in ADMIN). Thank you…

P.S.: I’m using the latest relase of Textpattern 4.0.3 …

Offline

#2 2006-02-21 17:06:50

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: List of all files which can be downloaded

Did you put this code in a form? It should have type: file. And then on your page template: txp:file_download_list form=“yourform”.

Offline

#3 2006-02-21 17:15:49

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: List of all files which can be downloaded

In what context are you using these tags?

Textbook link:<a href=“http://textpattern.net/wiki/index.php?title=Txp:file_download_/”>File_download</a>

<code><txp:file_download form=“yourform” /></code>, should call the form with the tags you have listed in “yourform” (or the default “files” form which you have listed) itself, much like a links or article form. This way it can process the form contents recursively according to the attributes set in the file_download tag.

Tag Builder “presentation -> pages” (Inside Textpattern) with the File Downloads at the bottom on the left should get you there.

Offline

#4 2006-02-21 17:33:13

toki
New Member
Registered: 2006-01-29
Posts: 3

Re: List of all files which can be downloaded

Thank you very much … I have found the solution. It was something wrong with the template. I cannot explain it but it is really weird …

Offline

Board footer

Powered by FluxBB