Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-03-11 16:23:04

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

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"/>

My Plugins

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

Offline

#2 2015-03-23 15:22:53

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

Re: Question on use of variables in an article tag loop.

No comments?


My Plugins

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

Offline

#3 2015-03-23 17:55:18

etc
Developer
Registered: 2010-11-11
Posts: 5,393
Website GitHub

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

#4 2015-03-23 18:16:46

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

Re: Question on use of variables in an article tag loop.

Thanks!


My Plugins

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

Offline

Board footer

Powered by FluxBB