cotonti.com : Include a template inside another include https://www.cotonti.com Последние сообщения в теме Cotonti en Sat, 07 Nov 2026 06:31:00 -0000 tensh I have just solved it by just defining a new template in the wrapper function with a filename dependant on subfunction params.]]> чт, 29 апр 2010 20:18:39 -0000 Trustmaster ср, 28 апр 2010 22:54:11 -0000 tensh
I can easily include one template file:

{FILE "plugins/myplug/functions/tpl/master.tpl"}

But what if the contents of this file are like this:

<!-- IF {FUNIDTXT} == "myfunction" --> 
{FILE "plugins/myplug/functions/tpl/myfunction.tpl"} 
<!-- ENDIF -->  

It looks like the IF statement is interpreted, but instead including another file, the text {FILE "plugins/myplug/functions/tpl/myfunction.tpl"} is returned.

Is inability to nest template inclusion an expected thing?
I just want to make something like a "subplugin" thing, which generates the master tpl depending on the functions in the system (database).]]>
ср, 28 апр 2010 19:34:10 -0000