Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-04 00:44:10

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

#2 2009-01-05 12:28:37

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Global and Section-based Categories

Anyone thought about this then?


~ Cameron

Offline

#3 2009-01-05 16:32:33

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

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

Board footer

Powered by FluxBB