Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-05 20:02:06

Wolfgang
Member
From: Germany
Registered: 2006-07-18
Posts: 71
Website

I've a small problem with the custom field

Hello

I need a construct like this

<txp:if_custom_field name=“a”> <txp:output_form form=“x_<txp:custom_field name=“Werbung-Top” />_top” />
</txp:if_custom_field>

That means. If the custom-field holds a value and the value is b, the output-form x_b_top shall be included into the page. But this does not work, because I can only find _top for a result.

Does someone have any idea?

Thanks and best regards
Wolfgang

Offline

#2 2009-12-05 20:20:56

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: I've a small problem with the custom field

<txp:if_custom_field name="a">
<txp:output_form form='x_<txp:custom_field name="Werbung-Top" />_top' />
</txp:if_custom_field>

For tags in tags you have to use single quotes.

Changed Textiled curly quotes into straight -Gocom


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2009-12-08 15:35:42

Wolfgang
Member
From: Germany
Registered: 2006-07-18
Posts: 71
Website

Re: I've a small problem with the custom field

Thanks, it runs.

Offline

Board footer

Powered by FluxBB