Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-17 20:28:52

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

How to Not Display Articles Output by Category on the Front Page?

I am using if_category to output articles by selected category. However, I do not want the list of articles to be displayed on the front page. I want them to be in their section.

How can I have the articles displayed in their section with the page template assigned to that section.

<txp:category_list label="Categories" labeltag="h2" wraptag="ul" break="li" class="category-list" />

<txp:if_category name="black">
<txp:article_custom limit="9999" form="default" category="black" section="moulding" />
</txp:if_category>

<txp:if_category name="silver">
<txp:article_custom limit="9999" form="default" category="silver" section="moulding" />
</txp:if_category>

<txp:if_individual_article>
<txp:article_custom section="moulding" form="f_catalog_item" />
</txp:if_individual_article>

Art Rogue – Fine Art Photography

Offline

#2 2007-08-17 21:24:58

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: How to Not Display Articles Output by Category on the Front Page?

I solved the problem by assigning a section=“moulding” to my category_list tag.

<txp:category_list label="Categories" labeltag="h2" section="moulding" wraptag="ul" break="li" class="category-list" />

Art Rogue – Fine Art Photography

Offline

Board footer

Powered by FluxBB