Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Category Archive
Hi,
I’ve searched the complete day for a solution but I can’t find one.
I want to set up a blog with a overview and archive. So far, so good.
Everything works well except the category archive.
This is my blog template (not default):
<div id="content">
<txp:if_category>
<h2><txp:category title="1" /></h2>
<txp:article form="article-listing" limit="5" />
<txp:else />
<txp:if_search>
<h2><txp:text item="search_results" />: <txp:page_url type="q" /></h2>
</txp:if_search>
<txp:if_individual_article>
<txp:article form="blog-entry" />
<txp:else />
<div id="blarchiv-sidebar">
<txp:output_form form="sub_navi" />
<h4>Linktipps</h4>
<txp:linklist category="Empfehlung" wraptag="ul" break="li" form="Links" sort="date desc" />
</div>
<div id="main">
<txp:article pageby="10" limit="1" form="most-recent" />
<txp:article form="more-recent" limit="5" offset="1" searchall="0" sort="Posted desc" status="4" />
</div>
</txp:if_individual_article>
</txp:if_category>
</div>
But if I click on the category link in an individual article it doesn’t work. It seems that only this part is displayed: <h2><txp:category title="1" /><h2>
I hope you understand my problem ;)
If a live example is required, drop me a line and I’ll send you the link.
(Edited to escape code block. -Els)
Last edited by els (2008-10-04 14:02:49)
Offline
Re: Category Archive
I’m wondering if you should be using the <txp:article_custom />
tag in your “if_category” block at the top.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Pages: 1