|
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 |
orao Smarty Rookie
Joined: 23 Dec 2009 Posts: 20
|
Posted: Sun Feb 28, 2010 11:31 am Post subject: Lastest SVN 3508 {block} not working anymore? |
|
|
It is working in version 3488 but not in 3508
parent.tpl
Code: | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{block name="page_title"}{/block}</title>
<meta name="description" content="{block name="page_description"}{/block}" />
<meta name="keywords" content="{block name="page_keywords"}{/block}" />
</head>
<body>
{block name="content"}
default text
{/block}
</body>
</html>
|
child.tpl
Code: | {extends file="parent.tpl"}
{block name="page_title"}page title{/block}
{block name="page_keywords"}meta keywords{/block}
{block name="page_description"}meta description{/block}
{block name="content"}
child content
{/block} |
Now the {block name="content"} doesn't get overrided with the child's content. The same is with all other blocks....
Any ideas? |
|
Back to top |
|
orao Smarty Rookie
Joined: 23 Dec 2009 Posts: 20
|
Posted: Sun Feb 28, 2010 11:57 am Post subject: |
|
|
I already found out....
from the svn log
- allow block tags inside double quoted string
Looks like only single quotes for block names are allowed.
cheers |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Feb 28, 2010 1:42 pm Post subject: |
|
|
It' a bug. Will fix it ASAP |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Feb 28, 2010 1:55 pm Post subject: |
|
|
The fix is in the SVN now. |
|
Back to top |
|
orao Smarty Rookie
Joined: 23 Dec 2009 Posts: 20
|
Posted: Sun Feb 28, 2010 6:22 pm Post subject: |
|
|
Thanks, you have a beer on me! |
|
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
|