|
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 |
TofuWarrior Smarty Rookie
Joined: 05 Jun 2006 Posts: 18
|
Posted: Wed Jul 19, 2006 3:25 pm Post subject: include template form within template |
|
|
Hi,
I think I am being stupid but I couldn't find any posts addressing this.
I am trying to include a navigation file fromwithin another template.
I tried this
{include file='../clearcmslib/Templates/public/navigation.tpl'}
{include file='/../clearcmslib/Templates/public/navigation.tpl'}
{include file='navigation.tpl'}
and I also tried
{include file={$smarty.server.DOCUMENT_ROOT}{$smary.const.CMS_LIB}'/Templates/public/navigation.tpl'}
All of them give the same, can'tload the template file error.
Anybody know how i am being dumb because this must be very simple.
Thanks,
TW _________________ We make a living by what we get.
We make a life by what we give. |
|
Back to top |
|
LeGaS Smarty Rookie
Joined: 14 May 2005 Posts: 17 Location: Hungary
|
Posted: Wed Jul 19, 2006 3:29 pm Post subject: |
|
|
Hi!
Try this:
Code: | {include file="./clearcmslib/Templates/public/navigation.tpl"} |
|
|
Back to top |
|
TofuWarrior Smarty Rookie
Joined: 05 Jun 2006 Posts: 18
|
Posted: Wed Jul 19, 2006 3:33 pm Post subject: |
|
|
just tried
{include file='public/navigation.tpl'}which worked.
Sigh, I am dumb.
Thanks for reply.
TW _________________ We make a living by what we get.
We make a life by what we give. |
|
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
|