SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Programming / Template parsing within template
Posted:  03 May 2005 12:01
Is it possible to parse a template within another template?

For example put something like {$template[something]} inside another template which would put one inside the other.

Thanks
__________________
Posted:  03 May 2005 16:56
Actually, it can be done, but the current template engine does not support it. Currently, variables in a template can be other templates (pre-loaded). So, basically, you load the lets say navigation template in a var {$navigation}, and that var is included in the big header template, which you parse afterwards.
__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
Posted:  03 May 2005 23:43
Ok thanks...

How would I load a template into a variable to be outputted in another template?
__________________
Posted:  04 May 2005 07:42
Code:

$var = eval(get_template('template_name'));

__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com