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

Search found 7 matches
Smarty Forum Index
Author Message
  Topic: Smarty 3.1.14: nested block problem
zardrell

Replies: 6
Views: 15313

PostForum: Bugs   Posted: Thu Jul 25, 2013 3:08 pm   Subject: Smarty 3.1.14: nested block problem
Hi.
I've got some problems when using nested block.

a.tpl

{block name='body'}
{block name='main'}{/block}
{/block}



b.tpl extends ...
  Topic: Nested {block} problem
zardrell

Replies: 5
Views: 9008

PostForum: General   Posted: Wed Jan 16, 2013 12:18 pm   Subject: Nested {block} problem
I have tried the following code:

grandparent.tpl

<html>
<head>
<title>Smarty</title>
</head>
<body>
{block body}
...
  Topic: Nested {block} problem
zardrell

Replies: 5
Views: 9008

PostForum: General   Posted: Wed Oct 31, 2012 1:04 am   Subject: Nested {block} problem
Ok, thank you.
  Topic: Nested {block} problem
zardrell

Replies: 5
Views: 9008

PostForum: General   Posted: Tue Oct 30, 2012 10:56 pm   Subject: Nested {block} problem
I'm sorry, I have the {$smarty.block.child} in the {block script}{/block}

pc_structure.tpl


<html>
<head><title>Smarty</title></head>
<body>
...
  Topic: Nested {block} problem
zardrell

Replies: 5
Views: 9008

PostForum: General   Posted: Tue Oct 30, 2012 1:15 pm   Subject: Nested {block} problem
Hi.
I have the following code:

PHP 5.3.8
Smarty 3.1.12

pc_structure.tpl

<html>
<head><title>Smarty</title></head>
<body>
{block 'body' ...
  Topic: Overwrite {block} with attributes
zardrell

Replies: 1
Views: 20239

PostForum: Feature Requests   Posted: Wed Aug 29, 2012 1:47 pm   Subject: Overwrite {block} with attributes
Hi.
I want to overwrite blocks which contain {$smarty.block.child} and I do not want to use wrapper blocks.
Attributes like clear may be helpful?

parent.tpl

{block name='a'}
< ...
  Topic: {$smarty.block.child} not working in nested {block}
zardrell

Replies: 8
Views: 13277

PostForum: General   Posted: Tue Dec 20, 2011 6:06 am   Subject: {$smarty.block.child} not working in nested {block}
I've tried 3.1.7 but the code after {$smarty.block.child} got disappeared?

index.tpl

<html>
<head>
<title>Smarty</title>
</head>
<body>
 ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP