Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: How to identify all major page types in the default page template?
Currently, I think Bloke’s proposal is the only valid solution to separating the different functions of the default page. The whole nested if conditionals gets way too messy considering the default page template has to account for various different functions:
- search results page
- category results page
- author results page
- and the front page layout.
I can argue that article list and individual article layouts should be handled by using a different page template for the specific sections. Even still, Those four sections (search, category, author, front page) are distinct enough that they should have a default section/page already assigned to them. Or at least a way to assign a different section to be used.
rss_unlimited_categories handles this fairly well with its linktosection attribute. It would be great to have this linktosection attribute for <txp:author /> and the others tags.
I thought there was a plug in out there to define a different section for search – anybody know what I’m talking about?
Txp admin themes | dropshado.ws – a blog for design noobs like me
Offline
Re: How to identify all major page types in the default page template?
Hi nemoorange:
check my post on this same thread.
Offline
Re: How to identify all major page types in the default page template?
maniqui – thank you! While the category fix is a hack, the search fix works great. I’m ashamed I didn’t of it previously.
Txp admin themes | dropshado.ws – a blog for design noobs like me
Offline
Re: How to identify all major page types in the default page template?
nemoorange wrote:
…category fix is a hack…
Nope, not exactly but depends on what you mean by hacking. It just is pasting and tossing TXP tags around, like we all usually do.
Also the search form can be fully customized by just making the XHTML different: it is just a static form.
Offline