Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-10 13:19:28

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Hmm... need a little article list conditional help

Hi,
My article list code is not listing all articles in the section when I change from a simple article tag to a conditional article statement with multiple forms to display the article.

not sure whats causing it…

So the below code works fine to display a list of previous blog entries:
<txp:if_individual_article> <txp:article_custom limit="999" form="blog_listing" section="blog" /> <txp:else /> <txp:article_custom limit="999" offset="1" form="blog_listing" section="blog" /> </txp:if_individual_article>

when the article is displayed like this

<txp:article form="blog_entry" limit="1" />

But if I use this:
<txp:if_individual_article> <txp:if_article_category name="multiple"> <txp:article form="multiple_entry" /> <txp:else /> <txp:article form="blog_entry" /> </txp:if_article_category> <txp:else /> <txp:article limit="1" form="blog_entry" status="5" /></txp:if_individual_article>

it doesn’t display all the articles, and not just the ones that are affected by the form mulitple.

Last edited by kvnmcwebn (2009-07-10 13:20:12)


its a bad hen that wont scratch itself.
photogallery

Offline

#2 2009-07-10 14:46:22

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: Hmm... need a little article list conditional help

Maybe it’s because of status="5" in the last article-tag. According to Textbook, status can only be live or sticky.


Prrrrrrrr

Offline

#3 2009-07-10 15:00:06

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: Hmm... need a little article list conditional help

Doh!


its a bad hen that wont scratch itself.
photogallery

Offline

Board footer

Powered by FluxBB