Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Port old {head} plugin to Smarty3

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
Troto
Smarty Rookie


Joined: 21 Mar 2007
Posts: 9

PostPosted: Thu Nov 12, 2009 2:54 pm    Post subject: Port old {head} plugin to Smarty3 Reply with quote

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


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

PostPosted: Thu Nov 12, 2009 7:42 pm    Post subject: Reply with quote

I tested it with Smarty3 and it does work.

Note: Your template must have also a html <head> </head> section.
Back to top
View user's profile Send private message
Troto
Smarty Rookie


Joined: 21 Mar 2007
Posts: 9

PostPosted: Fri Nov 13, 2009 11:56 am    Post subject: Reply with quote

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


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

PostPosted: Sat Nov 14, 2009 1:02 pm    Post subject: Reply with quote

This has been fixed in the SVN now.

NOTE: You must recompile your templates.
Back to top
View user's profile Send private message
Troto
Smarty Rookie


Joined: 21 Mar 2007
Posts: 9

PostPosted: Mon Nov 16, 2009 10:49 am    Post subject: Reply with quote

Excellent, thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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