Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Offline
Re: Use different layouts for the same section?
Poor zem. It seems like all you do lately is link to the FAQ.
Offline
Re: Use different layouts for the same section?
Thank you, thank you, thank you.
Offline