Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-06-03 12:45:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

category page problems

I have a problem with article lists on a category page and for the life of me I cannot solve it…

This is a simplified version of the code I am using

<txp:if_article_list>
<txp:if_search>
<txp:else />
<txp:if_category name="arts_info,calls,texts">
I am in one of the categories // does not work
</txp:if_category>
<txp:if_section name="texts">
I'm in section 'texts' // works


<txp:else />

<txp:if_section name="calls">
I'm in section 'calls' // works
</txp:if_section>

<txp:if_section name="arts_info">

I'm in section 'arts_info' //works

</txp:if_section>

<some txp tags />

</txp:if_section> // close texts if_section

<txp:if_category title='<txp:category />'>
I should be in a category page // does not work
</txp:if_category>
</txp:if_search>

</txp:if_article_list>

can anyone see what I am doing wrong?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2012-06-03 13:14:52

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: category page problems

How about using <txp:if_article_category /> ?

Offline

#3 2012-06-03 13:26:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: category page problems

Hi Joe and thanks for responding. I just solved the issue which was with the category section!


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB