|
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 |
gmilby Smarty Rookie
Joined: 18 Dec 2011 Posts: 12
|
Posted: Fri Dec 23, 2011 5:40 pm Post subject: can child tpl included in one than more parent? |
|
|
{extends file="sub_parent.tpl || parent.tpl} or somethingl ike this? |
|
Back to top |
|
gmilby Smarty Rookie
Joined: 18 Dec 2011 Posts: 12
|
Posted: Fri Dec 23, 2011 6:20 pm Post subject: Re: can child tpl included in one than more parent? |
|
|
gmilby wrote: | {extends file="sub_parent.tpl || parent.tpl} or somethingl ike this? |
answered my own question... if it's in the parent.tpl - it's seemingly all good in the sub's too. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Dec 23, 2011 6:20 pm Post subject: |
|
|
You can chain it like
child.tpl
Code: | {extends file="sub_parent.tpl"} |
sub_parent.tpl
Code: | {extends file="parent.tpl"} |
|
|
Back to top |
|
gmilby Smarty Rookie
Joined: 18 Dec 2011 Posts: 12
|
Posted: Fri Dec 23, 2011 7:13 pm Post subject: |
|
|
U.Tews wrote: | You can chain it like
child.tpl
Code: | {extends file="sub_parent.tpl"} |
sub_parent.tpl
Code: | {extends file="parent.tpl"} |
|
that's exactly what i did... may be i picked it up from docs(?) |
|
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
|