Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Global and Section-based Categories
I’d love the ability to have some options for categories, such as being able to choose if they are global, or section specific!
For instance, say I create a staff cat for my about section, I’d love to be able to click an option that made it ONLY available to that section, so if I say went to domain.com/randomsection/?c=staff it would throw a 404!
This would allow the users that need to use Global categories okay, and also those that really want to restrict cats the ability to do so as well! Full control, and more clean URL’s! Thoughts?
Last edited by driz (2009-01-04 00:47:36)
~ Cameron
Offline
Re: Global and Section-based Categories
Anyone thought about this then?
~ Cameron
Offline
Re: Global and Section-based Categories
I suppose you could trap it using a combination of if_category and if_section (along with <txp:else />
) to only output the results in the section you want them to appear.
Otherwise I would only link to it on the sections you want to have it on. txp:category_list has a this_section="1"
and a section="my-specific-section"
attribute that helps you automatically generate the correct links with the section.
TXP Builders – finely-crafted code, design and txp
Offline