Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
txp_if_different help
Hi I use the following code in a Form to generate a portfolio
<txp:if_different>
<div class="pull-2" style="clear:both;">
<h3><txp:category1 link="0" title="1" section="portfolio" this_section="0" /></h3>
</div>
</txp:if_different>
<txp:if_first_article>
<ul class="portfolio">
</txp:if_first_article>
<li>
<txp:permlink><txp:article_image thumbnail="1" /></txp:permlink>
<p><txp:title /></p>
</li>
<txp:if_last_article>
</ul>
</txp:if_last_article>
It works so so but this is how I want it to work:
<h3>...</h3>
<ul>
<li>...</li>
</ul>
<h3>...</h3>
<ul>
<li>...</li>
</ul>
I want it to close the UL if it is different and then show the H3, at the moment it is wrapping the H3 after the first one inside the UL’s
See here for the real version: http://driz.co.uk/work/
Last edited by driz (2009-07-21 12:35:13)
~ Cameron
Offline
Re: txp_if_different help
I decided to just spit out two article_customs'
and then have a diff category for each, works much better :)
~ Cameron
Offline
Pages: 1