Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[archived] bas_if_excerpt
Notice: This thread is archived, there is a native txp tag now <txp:if_excerpt>.
**********************************************************
Like I understood the <txp:article_custom excerpted="y" /> it returns only those articles width have excerpts and ignores the others.
But I want an article like this:
txp:excerpts for those articles which have excerpts and txp:body for articles without excerpts.
So I did this little plugin:
Download : bas_if_excerpt
This plugin gives you two more conditional tags:
<txp:bas_if_excerpt>
<txp:bas_if_no_excerpt>
I use them like this
<pre>
<txp:if_article_list><br />
<h2><txp:title /></h2><br />
<txp:bas_if_excerpt><br />
<txp:excerpt /><br />
<txp:permlink> read more</txp:permlink><br />
</txp:bas_if_excerpt><br />
<txp:bas_if_no_excerpt><br />
<txp:body /><br />
</txp:bas_if_no_excerpt><br />
</txp:if_article_list><br />
</pre>
Last edited by Bastian (2005-03-12 14:33:39)
Offline
Pages: 1
Topic closed