<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : cache in tpl include.... seriously!</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 27 Apr 2026 16:59:57 -0000</pubDate>

		<item>
			<title>Macik</title>
			<description><![CDATA[<blockquote>
	<a href="https://www.cotonti.com/forums?m=posts&amp;p=36683#36683">#36683</a> <strong>tensh: </strong><br /><p>
		Yeah, you're right, but I have to know the values and so the whole thing isn't dynamic. :(</p>
</blockquote>
<p>
	 </p>
<p>
	Can you explain your case more detailed ?  Why you need dynamic and how you are using it?</p>
]]></description>
			<pubDate>Thu, 03 Січ 2013 12:59:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7290&d=0#post36686]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	You can just disable tpl cache then if having dynamic includes is so important.</p>
]]></description>
			<pubDate>Thu, 03 Січ 2013 11:26:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7290&d=0#post36685]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	Yeah, you're right, but I have to know the values and so the whole thing isn't dynamic. :(</p>
]]></description>
			<pubDate>Thu, 03 Січ 2013 10:05:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7290&d=0#post36683]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>
	Similar question had been discussed somewhere on forum… You can not use «dynamic» FILE statments. </p>
<p>
	As a solution bring template logic to your TPL files rather creating separate TPL files for any case. So you need to include one file:</p>
<pre class="brush:xml;">
{FILE "./themes/{PHP.cfg.defaulttheme}/inc/extrafields.tpl"}</pre>
<p>
	and then in file use IF blocks:</p>
<pre class="brush:xml;">
&lt;!-- IF {PHP.pag.page_MYEXTRAFIELD} == 'some value' --&gt;
  you template here
&lt;!-- ENDIF --&gt;
&lt;!-- IF {PHP.pag.page_MYEXTRAFIELD} == 'other value' --&gt;
  you second template here
&lt;!-- ENDIF --&gt;</pre>
<p>
	 </p>
]]></description>
			<pubDate>Ср, 02 Січ 2013 15:06:24 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7290&d=0#post36678]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	Hi;</p>
<p>
	I can't stand the caching in tpl file include. The code like this:</p>
<p>
	{FILE "./themes/{PHP.cfg.defaulttheme}/inc/{PHP.pag.page_MYEXTRAFIELD}"} doesn't work since the values are cached and aren't dynamic.</p>
<p>
	Not to mention that the code:</p>
<p>
	{FILE "./themes/{PHP.cfg.defaulttheme}/inc/{PAGE_ANYTAG}"}</p>
<p>
	doesn't work at all since {PAGE_ANYTAG} is empty.</p>
<p>
	Can you please give me any fix/solution? I wanted to include a template based on extrafield value (path), and I'm in a serious trouble now.</p>
]]></description>
			<pubDate>Ср, 02 Січ 2013 14:12:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7290&d=0#post36677]]></link>
		</item>
	</channel>
</rss>