Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-04-17 01:30:58

gimmiemac
New Member
Registered: 2010-04-17
Posts: 1

Form problem please help

hello txp masters

I’ve been struggling to find out this thing below to work :

I created a custom field named topORright to make my article_image position picks the right form

if this topORright custom_field has value = huge = I want it to choose a form called = myArticle_full_top (for a full display) and myArticle_excerpt_top (for excerpt)
and if it has value = tiny = I want it to use a form called = myArticle_full_right (for a full display) and myArticle_excerpt_right (for excerpt)

then I come up with this structure tags to display those articles

<txp:if_individual_article>
<txp:article_custom  limit="1" topORright="huge">
<txp:if_custom_field val="huge">
	<txp:article class="aFull" form="myArticle_full_top" limit="2" />
<txp:else />
	<txp:article class="aFull" form="myArticle_full_right" limit="2" />
</txp:if_custom_field>
</txp:article_custom>
<txp:else />
<txp:article_custom  limit="1" topORright="huge">
<txp:if_custom_field val="huge">
	<txp:article class="aTiny" form="myArticle_excerpt_top" limit="2" />
<txp:else />
	<txp:article class="aTiny" form="myArticle_excerpt_right" limit="2" />
</txp:if_custom_field>
</txp:article_custom>
</txp:if_individual_article>

but I never get it right with this tags
Is there any other simpler way to make it works correctly ?
because those tags doesn’t work for me :((

appreciate any of your help

thank you

Offline

Board footer

Powered by FluxBB