Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: I've a small problem with the custom field
Thanks, it runs.
Offline