Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-07 14:57:31

egecan
New Member
Registered: 2009-08-07
Posts: 2

How to hide a section from the main page but show it in category view?

I have a blog with some technical posts that are in a different section than others. I find it too confusing to have them on the main page so I’ve switched the “on front page” option to off. So, I also display a list of categories in the sidebar but after that change, when I click on a category, I see none of those posts. Is “category view” a part of the main page? I’d really appreciate any help, because I want to show them in category view Thanks =)

Offline

#2 2009-08-23 15:14:57

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

Re: How to hide a section from the main page but show it in category view?

egecan wrote:

Is “category view” a part of the main page?

Yes. Sorry for the delayed reply, I assume you already found a solution, but anyway: you can show category lists on a section page using the section or this_section attribute in the tags you use for linking to the categories (<txp:category />, <txp:category_list />, <txp:category1 />, <txp:category2 />).
If articles in a category can be in more than one section, you’ll have to use <txp:article_custom /> rather than <txp:article /> on that section page.

Last edited by els (2009-08-23 15:17:02)

Offline

#3 2009-08-23 15:25:46

egecan
New Member
Registered: 2009-08-07
Posts: 2

Re: How to hide a section from the main page but show it in category view?

Yes I’ve found a solution but mine wasn’t so practical as using just article_custom tag. Btw, you don’t have to be sorry for a late reply, and I really appreciate that somebody did reply anyway. Thanks! =)

Els wrote:

egecan wrote:

Is “category view” a part of the main page?

Yes. Sorry for the delayed reply, I assume you already found a solution, but anyway: you can show category lists on a section page using the section or this_section attribute in the tags you use for linking to the categories (<txp:category />, <txp:category_list />, <txp:category1 />, <txp:category2 />).
If articles in a category can be in more than one section, you’ll have to use <txp:article_custom /> rather than <txp:article /> on that section page.

Offline

Board footer

Powered by FluxBB