Hello!
I have been trying to find out how to do this for nearly half a day now, but i failed.
Let's say i have a file called index.tpl. And i also have a file which contains a form called form.tpl.
Now i want the form to be in my index.tpl so index.tpl would look like this:
<html> blah blah
<table blah blah>
<tr>
<td> {$form}</td>
<tr>
</table>
.....
And i do not want the form to be displayed all the time, rather i want the form to be shown only if $form is TRUE, else it should display a nonbreakingspace ( ).
So my two questions are:
How can i display a template inside a template and also how can i tell the template index.tpl to show either the form or a nonbreakingspace WITHOUT having to use smarty's {if} {else} etc.. functions (cause the second i have to do that, it is IMHO not a template anymore, no offence taken).
I downloaded the docu as a .pdf file and looked through it what seemed to be forever, but either i totally overlooked it, or what i want is not possible, which i dought very much :)
Any help or tips, hints would be appreciated.
Thanks a lot in advance!
Best regards from Vienna,
Jürgen Hauser
Jürgen (aka. Frodo the scribe
======================
Visit the MECCG Forums at
http://www.coen.at.tf