Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: Hmm... need a little article list conditional help
Doh!
its a bad hen that wont scratch itself.
photogallery
Offline