Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-02 18:55:25

Viktor
Member
From: Nürnberg
Registered: 2008-09-12
Posts: 21
Website

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

#2 2008-10-04 13:08:31

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

Board footer

Powered by FluxBB