Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-04-04 00:37:39
- neokultur
- Member
- Registered: 2005-09-23
- Posts: 43
How i Create an "ARCHIVE" Templete For a New Section?
For the post, the templates are two codes: default y archive.
When i create a new section, for example: default2, how i can create it an archive templete for this specific section?
If i dont create an archive template for this section (for example: archive2) the new template called default2 will work with the template “archive” for display every post, right?
Offline
Re: How i Create an "ARCHIVE" Templete For a New Section?
The individual article and archive pages for each section are handled by the same template. See documentation for <a href=“http://textpattern.net/wiki/index.php?title=Txp:if_individual_article tag” title=“Txp:if individual article”>txp:if_individual_article</a> and <a href=“http://textpattern.net/wiki/index.php?title=Txp:if_article_list tag” title=“Txp:if article list”>txp:if_article_list</a>.
<blockquote>If i dont create an archive template for this section (for example: archive2) the new template called default2 will work with the template “archive” for display every post, right?</blockquote>
If you’ve selected the <strong>default2</strong> template to control the presentation of that section (controlled, surprisingly enough, by the Presentation tab), no it won’t. It’ll just follow the instructions issued by that page (i.e., do nothing visibly different at all).
Last edited by Elenita (2006-04-04 01:43:46)
Offline
#3 2006-04-04 01:58:34
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: How i Create an "ARCHIVE" Templete For a New Section?
You might also want to read the FAQ. It explains how sections, templates and articles are related.
Alex
Offline