Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Name of parent Template

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
mischa
Smarty Rookie


Joined: 30 Apr 2003
Posts: 19
Location: Suhr, Switzerland

PostPosted: Fri Nov 07, 2003 12:40 pm    Post subject: Name of parent Template Reply with quote

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
View user's profile Send private message
mystrymaster
Smarty Rookie


Joined: 31 Oct 2003
Posts: 17

PostPosted: Fri Nov 07, 2003 3:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP