[htmltmpl] Possibility to include files "dynamicly"
Brought to you by:
samtregar
From: Maaged M. <ma...@ma...> - 2006-07-04 14:21:29
|
Hello ppl, in one of my templates i have a loop. On every pass, i want to include a different file. in short, i want to to something like this, but of course it does not work this way: <TMPL_LOOP testloop> <TMPL_INCLUDE NAME=3D"/path/to/foobar/<TMPL_VAR NAME=3D"DOC_ID">.html"> </TMPL_LOOP> DOC_ID is every time different. My current solution is to do it with a php-include, but that just shifts the usage of the cpu to php. And i don't want to do this. There must be a way to solve it. I don't want to install H:T:C just because of this feature. thanks in advance, regards, Maaged |