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

Lastest SVN 3508 {block} not working anymore?

 
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 -> Smarty 3
View previous topic :: View next topic  
Author Message
orao
Smarty Rookie


Joined: 23 Dec 2009
Posts: 20

PostPosted: Sun Feb 28, 2010 11:31 am    Post subject: Lastest SVN 3508 {block} not working anymore? Reply with quote

It is working in version 3488 but not in 3508 Sad

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


Joined: 23 Dec 2009
Posts: 20

PostPosted: Sun Feb 28, 2010 11:57 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sun Feb 28, 2010 1:42 pm    Post subject: Reply with quote

It' a bug. Will fix it ASAP
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sun Feb 28, 2010 1:55 pm    Post subject: Reply with quote

The fix is in the SVN now.
Back to top
View user's profile Send private message
orao
Smarty Rookie


Joined: 23 Dec 2009
Posts: 20

PostPosted: Sun Feb 28, 2010 6:22 pm    Post subject: Reply with quote

Thanks, you have a beer on me!
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 -> Smarty 3 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