|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
mischa Smarty Rookie
Joined: 30 Apr 2003 Posts: 19 Location: Suhr, Switzerland
|
Posted: Fri Nov 07, 2003 12:40 pm Post subject: Name of parent Template |
|
|
Hi
Is it possible to get the name of the prant template. As example, i've a _header.tpl which is loaded in every template. In _header.tpl i need to know which template has loaded the header.
I need to know that because i want to load a config-file that has the same name.
Example:
news.tpl:
Code: | {include file="_header.tpl"}
My News |
_header.tpl:
Code: | {config_load file="$parentname.cfg"}
<html> |
$parentname.cfg looks like:
news.tpl.cfg
Is there a way to do that?
Thanks for your help!
Mischa |
|
Back to top |
|
mystrymaster Smarty Rookie
Joined: 31 Oct 2003 Posts: 17
|
Posted: Fri Nov 07, 2003 3:32 pm Post subject: |
|
|
the debug console calls it so I am sure there is a way just dig through the debug files and you should be able to find it |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|