Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2008-09-02 16:10:12

nemoorange
Plugin Author
From: Washington DC
Registered: 2006-11-29
Posts: 90
Website

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

#17 2008-09-02 16:29:10

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: How to identify all major page types in the default page template?

Hi nemoorange:

check my post on this same thread.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#18 2008-09-03 00:18:25

nemoorange
Plugin Author
From: Washington DC
Registered: 2006-11-29
Posts: 90
Website

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

#19 2008-09-03 05:57:50

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

Board footer

Powered by FluxBB