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: Check if {block name="foo"} was defined?
claassen

Replies: 12
Views: 44502

PostForum: Smarty 3   Posted: Tue Oct 10, 2017 2:38 pm   Subject: Check if {block name="foo"} was defined?
This is exactly what the hide flag is for:

parent.tpl
{block name="content" hide}
<div id="content">
{$smarty.block.child}
</div>
...
  Topic: Moving javascript to the bottom of the page
claassen

Replies: 3
Views: 7736

PostForum: General   Posted: Thu Oct 10, 2013 7:52 am   Subject: Moving javascript to the bottom of the page
That works great, when the header_sub_sub.tpl isn't being included. When it is being included (not through extending, but through {include}'ing), the scripts are all inserted at the position where hea ...
  Topic: Moving javascript to the bottom of the page
claassen

Replies: 3
Views: 7736

PostForum: General   Posted: Wed Oct 09, 2013 2:50 pm   Subject: Moving javascript to the bottom of the page
Hi everyone,


we've been using Smarty for quite a while now, and recently we succesfully upgraded to Smarty 3. Our next improvement is targeting our pagespeed, and we want to move all <scripts& ...
 
Page 1 of 1
All times are GMT
Jump to:  


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