Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-26 18:11:23

edemay
Member
From: Montréal
Registered: 2005-08-16
Posts: 27
Website

Use different layouts for the same section?

Can a section’s main page have a different layout as the individual posts? If so how?

Or do I have to create another section and link the content to it through < txp article_custom >?

Last edited by edemay (2005-10-26 18:13:32)

Offline

#2 2005-10-26 19:06:00

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Use different layouts for the same section?

I haven’t tested this myself, but here’s a possibility:

<blockquote><code>
<head>
<txp:if_article_list><link rel=“stylesheet” type=“text/css” href=”<txp:css n=“list_style” />” /></if_article_list>
<txp:if_individual_article><link rel=“stylesheet” type=“text/css” href=”<txp:css n=“individual_article_style” />” /></if_individual article>
</head>
</code></blockquote>

Of course, change the style names to the ones you’d actually be using.

Offline

#3 2005-10-26 21:10:52

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Use different layouts for the same section?

FAQ.


Alex

Offline

#4 2005-10-26 23:19:55

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Use different layouts for the same section?

Poor zem. It seems like all you do lately is link to the FAQ.

Offline

#5 2005-10-27 00:04:34

edemay
Member
From: Montréal
Registered: 2005-08-16
Posts: 27
Website

Re: Use different layouts for the same section?

Thank you, thank you, thank you.

Offline

Board footer

Powered by FluxBB