|
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 |
Troto Smarty Rookie
Joined: 21 Mar 2007 Posts: 9
|
Posted: Thu Nov 12, 2009 2:54 pm Post subject: Port old {head} plugin to Smarty3 |
|
|
Hi all,
I want to try out the new beta version of smarty and also use the old {head} plugin from http://smarty.incutio.com/?page=BlockHeadPlugin
No matter what i do with the plugin it doesn't seems to work. All i get it to return is an empty string.
Any help is greatly appreciated
Thanks |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Nov 12, 2009 7:42 pm Post subject: |
|
|
I tested it with Smarty3 and it does work.
Note: Your template must have also a html <head> </head> section. |
|
Back to top |
|
Troto Smarty Rookie
Joined: 21 Mar 2007 Posts: 9
|
Posted: Fri Nov 13, 2009 11:56 am Post subject: |
|
|
if i have something like:
Code: |
<html>
<head>
</head>
<body>
{head}
something in the header
{/head}
</body>
</html>
|
it works.
but if i have the {head} block in a template that is included in a master template it doe not work |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Nov 14, 2009 1:02 pm Post subject: |
|
|
This has been fixed in the SVN now.
NOTE: You must recompile your templates. |
|
Back to top |
|
Troto Smarty Rookie
Joined: 21 Mar 2007 Posts: 9
|
Posted: Mon Nov 16, 2009 10:49 am Post subject: |
|
|
Excellent, thanks. |
|
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
|