Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-03-04 17:28:06
- skurk
- New Member
- Registered: 2005-08-08
- Posts: 6
file_download_list disappearing act
I’ve went through all the posts I can find on file_download_list problems with no luck. My file download list just outputs nothing. I’m using the default files form (minus the description tag I believe) and the default file_download_list tag right off the txp wiki.
This is where the download list should show up: http://www.menomoniemarket.org/newsletter
Here is my txp code:
In the default article form:
<code>
<txp:if_section name=“Newsletter”>
<txp:file_download_list form=“files” category=“newsletter” limit=“10” break=“li” wraptag=“ul” sort=“downloads asc” />
</txp:if_section>
</code>
I’ve tried it without specifying a category and putting it on the page template rather than the default article form, no dice.
Here is the file_download_list form:
<code>
<txp:text item=“file” />:
<txp:file_download_link>
<txp:file_download_name /> [<txp:file_download_size format=“auto” decimals=“2” />]
</txp:file_download_link>
<br />
<txp:text item=“download” />: <txp:file_download_downloads />
</code>
I haven’t upgraded at all, it’s a straight 4.0.3 install and anyway files will download fine, it just won’t output the list. I’ve double checked spelling of sections and whatnot, tried different forms and all sorts of business, I think file_download_list is just shy. Anything anyone could suggest to coax it out of hiding would be greatly appreciated.
Offline
#2 2006-03-04 20:32:46
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: file_download_list disappearing act
<txp:if_section name="Newsletter">
: try “newsletter” without capital.
Offline
#3 2006-03-04 20:47:25
- skurk
- New Member
- Registered: 2005-08-08
- Posts: 6
Re: file_download_list disappearing act
Yeah I tried that too, no dice.
Offline
Re: file_download_list disappearing act
have you thrown the site into debug mode and looked at the tag trace yet? that usually helps me out when I’m having problems. If you don’t understand the output, drop it in pastebin and post the link here. I’ll take a look and see if I can’t see something that looks funky…
edit: wrong word :)
Last edited by rbe (2006-03-04 21:19:48)
Offline
#5 2006-03-04 21:15:54
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: file_download_list disappearing act
Is your form actually named ‘files’, and does it have type ‘file’?
And I myself am using the <txp:file_download_list />
tag in the page template, I’m not sure if it’s supposed to work in an article form.
Offline
#6 2006-03-04 21:24:52
- skurk
- New Member
- Registered: 2005-08-08
- Posts: 6
Re: file_download_list disappearing act
Ah hah! It works. I guess it did need to be in the page template. I had tried that before but I think I had a lowercase ‘n’ on Newsletter or something and it wasn’t recognizing the section. Thanks doggiez and rbe!
Offline
Pages: 1