Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2011-10-10 15:16:21
- GuyVerville
- Member
- Registered: 2011-09-21
- Posts: 31
Understanding how if_comments works
This seems obvious, but something doesn’t work for me here.
I have a list of blog entry here.
I wish to show there if an article has received commentaries. The form that builds the blog entry is called… Blogue. Commentaires are by default allowed and are build with comments_display form.
Blogue form reads:
<code>
<div class=“itemBlogue”>
<txp:if_individual_article>
<h1><txp:title /><h1>
<txp:body />
<txp:else />
<h1><txp:permlink><txp:title /></txp:permlink><h1>
<txp:body />
<txp:if_comments>
<p class=“lienCommentaires”><txp:permalink>Commentaires</txp:permalink></p>
</txp:if_comments>
</txp:if_individual_article>
</div>
</code>
The Promenades section has this:
<code>
<div id=“contenuPrincipal”>
<txp:if_individual_article>
<txp:article form=“blogue” pgonly=“0” />
<txp:else />
<txp:article form=“blogue” limit=“20” searchall=“0” sort=“Posted desc” status=“4” />
<p><txp:older>« <txp:text item=“older” /></txp:older>
<txp:newer><txp:text item=“newer” /> »</txp:newer></p>
</txp:if_individual_article>
</div>
</code>
This is not working. Thanks for helping!
Offline
Re: Understanding how if_comments works
Hi Gyu
I dont know that tag : <txp:permalink> maybe should be permlink no?
Offline
#3 2011-10-10 16:02:53
- GuyVerville
- Member
- Registered: 2011-09-21
- Posts: 31
Re: Understanding how if_comments works
ooops, a typo! :-) Perhaps it is just that! Silly me!
Offline
#4 2011-10-10 16:08:03
- GuyVerville
- Member
- Registered: 2011-09-21
- Posts: 31
Re: Understanding how if_comments works
This was the problem indeed. Thanks a lot.
Offline
Pages: 1