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 3 matches
Smarty Forum Index
Author Message
  Topic: Multiple inheritance from .tpl file
mitke013

Replies: 0
Views: 16998

PostForum: Feature Requests   Posted: Sun Feb 12, 2012 10:16 am   Subject: Multiple inheritance from .tpl file
I tried a code like this in .tpl file:

{extends file="first.tpl|second.tpl"}


But it doesn't work. Is it possible to do it from .tpl file instead of using php for that?
  Topic: Template inheritance: check if {block name="tabs"}
mitke013

Replies: 2
Views: 20993

PostForum: Feature Requests   Posted: Fri Feb 03, 2012 7:56 pm   Subject: Template inheritance: check if {block name="tabs"}
Thanks, I have been using similar code before, just wanted to make it more simple (ie. avoid another block).
I really hope such feature will appear in future versions. It can become very handy when t ...
  Topic: Template inheritance: check if {block name="tabs"}
mitke013

Replies: 2
Views: 20993

PostForum: Feature Requests   Posted: Wed Feb 01, 2012 8:49 pm   Subject: Template inheritance: check if {block name="tabs"}
Is there a way to check if parent.tpl knows if any of child templates has a block called ie.tabs?

Example:
....

parent.tpl
<div class="{if $smarty->hasBlockInChildren('tabs')} with- ...
 
Page 1 of 1
All times are GMT
Jump to:  


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