Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Question on use of variables in an article tag loop.
Is there any reason I shouldn’t do this to combine two previously separate but very similar article queries on the same page?
<txp:variable name="main-content" value=""/>
<txp:article_custom ...>
<txp:output_form form="side-form"/>
<txp:variable name="main-content">
<txp:variable name="main-content"/>
<txp:output_form form="main-form"/>
</txp:variable>
</txp:article_custom>
<div>... Lots of other HTML or Content ...</div>
<txp:variable name="main-content"/>
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: Question on use of variables in an article tag loop.
No comments?
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: Question on use of variables in an article tag loop.
No reasons — no comments. :) Nice idea, should be better than calling <txp:article_custom />
twice, imo.
Offline
Re: Question on use of variables in an article tag loop.
Thanks!
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline