Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Conditional tag problem. Need help with the logic.
I need to figure out how to work out a conditional tag problem and I’ve tried several scenarios and nesting schemes.
If I am at a section front then only display “welcome to this section”
If I select a category then display only the articles from that category
If an article is selected from the category article list then display only an individual article
I’ve been playing with txp:if_category and txp:if_individual_article but I just can’t get it right.
Art Rogue – Fine Art Photography
Offline
Re: Conditional tag problem. Need help with the logic.
See if this works:
<txp:if_category>
<txp:article limit="10" />
<txp:else />
<txp:if_article_list>
Welcome to <txp:section title="1" />
<txp:else />
<txp:article />
</txp:if_article_list>
</txp:if_category>
Offline
Re: Conditional tag problem. Need help with the logic.
Hey jm. Saw the pictures of your roof. That’s nuts. Hope all of that is worked out.
Where would the individual article fit in there? Is it in the if_article_list?
Art Rogue – Fine Art Photography
Offline
Re: Conditional tag problem. Need help with the logic.
Never Mind. It worked perfectly. I haven’t used the if_article_list conditional in a while.
Art Rogue – Fine Art Photography
Offline