Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-21 11:16:52

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

#2 2009-07-21 14:25:21

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

Board footer

Powered by FluxBB