|
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 |
matterk Smarty n00b
Joined: 25 Aug 2009 Posts: 2
|
Posted: Tue Aug 25, 2009 9:55 pm Post subject: syntax for accessing parent block content not working |
|
|
From the latest svn trunk, if I try
[code]
{block name="head"}
{$smarty.block.head.parent}
{/block}
[/code]
I don't get the content from the parent block. Looking at the compiled template it looks like it just gets ignored. Has anyone been able to get this to work? Is there a different syntax? |
|
Back to top |
|
douglassdavis Smarty Junkie
Joined: 21 Jan 2008 Posts: 541
|
Posted: Wed Aug 26, 2009 11:52 am Post subject: Re: syntax for accessing parent block content not working |
|
|
Is there documentation for this feature yet? I haven't heard of this, but I would like to know how it's supposed to work. |
|
Back to top |
|
matterk Smarty n00b
Joined: 25 Aug 2009 Posts: 2
|
Posted: Wed Aug 26, 2009 3:38 pm Post subject: |
|
|
I saw this in another thread:
[quote="U.Tews"]It has been changed now to
{$smarty.block.foo.parent}[/quote]
But I can't seem to get it to work. |
|
Back to top |
|
douglassdavis Smarty Junkie
Joined: 21 Jan 2008 Posts: 541
|
Posted: Wed Aug 26, 2009 8:37 pm Post subject: |
|
|
matterk wrote: | I saw this in another thread:
U.Tews wrote: | It has been changed now to
{$smarty.block.foo.parent} |
But I can't seem to get it to work. |
ok... you're talking about template inheritance.
haven't tried it yet. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Aug 27, 2009 12:00 am Post subject: |
|
|
try:
{$smarty.block.parent.foo} |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
|
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
|