Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-02 10:55:38

pielgrzym
New Member
Registered: 2007-01-02
Posts: 2

Static frontpage and automatic subcategories pages

Hello peeps :)

I’m building a website – it’s divided into sections. Each section has a template displaying a subcategory list. The problem is I need to have static text on the frontpage (default template) and I want to have a separate category template. And I don’t want to make static conditional loops based on predefined category name (in other words – I don’t want to mess with template if I add new categories). The problem is that inserting txp tags inside ither txp tags works… ehrmm… unperfect ;) I’m using ‘asy_wondertag’ to achieve this, but I can’t create a conditional tag that would automatically get a current category name and would create an article list :( Help me, please :(

Offline

#2 2007-01-02 11:21:47

pielgrzym
New Member
Registered: 2007-01-02
Posts: 2

Re: Static frontpage and automatic subcategories pages

Ok, maybe the other way round – is there a way to force textpattern NOT to use the damn ‘default’ template when displaying a single category?

Offline

#3 2007-01-02 11:57:30

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Static frontpage and automatic subcategories pages

Use <txp:category_list break="li" this_section="1" wraptag="ul" />. this_section="1" tells Textpattern to create links like http://site.com/section-name/?c=Category-Title. This means the category list will use the “section-name” page template.

Offline

Board footer

Powered by FluxBB