Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Articles not displaying in 2 sections
I have 3 txp:article_custom displaying on a page and 1 txp:article – but the txp:article isn’t working.
This is my code:
<txp:if_section name="apartments-for-sale">
<txp:breadcrumb label="Offshore Realty" />
<txp:article_custom id="13" form="article" />
<txp:chh_if_data>
<txp:article form="proplistings" limit="10" />
<txp:ob1_googlenav firsttext="First" previoustext="Previous" nexttext="Next" lasttext="Last" ulid="navg" />
<txp:else />
<h2>Currently No <txp:section /></h2>
</txp:chh_if_data>
</txp:if_section>
I have tried with the chh_if_data removed and had the same result… is there a limit to the amount of articles or article customs I can display on a page?
(Edited to properly end the code block. -Els)
Last edited by els (2008-03-26 09:32:45)
Offline
Re: Articles not displaying in 2 sections
So I’m guessing that the code looks correct as no one has commented…
Is there a limit on the amount of txp:article_custom and txp:article tags allowed on one page… or what else should I look at?
Offline
#3 2008-03-26 09:36:53
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Articles not displaying in 2 sections
tye wrote:
Is there a limit on the amount of txp:article_custom and txp:article tags allowed on one page…
No, that doesn’t matter.
My first question would be: are there any articles in section ‘apartments-for-sale’?
Does it display the <h2>Currently No <txp:section /></h2>
?
Offline
Re: Articles not displaying in 2 sections
Thanks Els – and yes to both your questions
Offline
Re: Articles not displaying in 2 sections
OK – I got it… there is some problem with sticky articles and txp:chh_if_data
I had an article (id 13) which was status: sticky and contained within the ‘apartments-for-sale’ section – this must have made txp:chh_if_data read that there was no articles as sticky articles are not contained within article lists :)
Offline
Pages: 1