Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-07 02:04:29

((slimey))
Member
Registered: 2005-06-25
Posts: 26

File Categories cant link to

Hey all,

Ive been crawling this forum for a good hour now trying to find an answer to what i think is going to be a stupid question.

I have set up a few File Categories, now i have used Categories for articles and they work perfectly using this code to link to the section and category you want to see.

<li><a href=”/comps/?c=summer”>Summer</a></li>

but i cant seem to be able to do the same with files.

I want to make it so you can only look at the files in the categories, any other ones or ones without Categories shouldnt be displayed or at least be put into the Misc category.

this is the code i have in my link that i want to lead to the page to display the chosen categories
/docs/?c=cm_minutes

and here is the files display code on the docs page

<txp:file_download_list form=“files” />

What am i doing wrong here i feel like im running around the answer in a small circle but still cant figure it out.
Many thanks in advance
Sean

Offline

#2 2007-02-07 03:46:54

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

Re: File Categories cant link to

<txp:file_download_list form="files" category="cm_minutes" /> should display a file list restricted by category. I don’t believe passing a category variable in the url will affect the tags behaviour.
file_download_list for more info on tag options.

Offline

#3 2007-02-07 06:42:49

((slimey))
Member
Registered: 2005-06-25
Posts: 26

Re: File Categories cant link to

There is 4 seperate catagories does that mean i have to create 4 different pages with the <txp:file_download_list form=“files” category=“differentname” /> code or is there another way to do it?

Offline

#4 2007-02-07 06:59:32

((slimey))
Member
Registered: 2005-06-25
Posts: 26

Re: File Categories cant link to

Its all cool i found this cool tag

<txp:if_category name=“other”>
<txp:file_download_list category=“other” form=“files” limit=“1” />
</txp:if_category>

Offline

Board footer

Powered by FluxBB