Oneness - True Faith
wizanda
Send Content to Header Via Smarty Function Posted on: 2009/4/12 10:50
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2814
If you need to send parts of a Smarty template to a header i.e. styles should be, etc.
Here is a very simple Smarty plug-in to do so....
function.xmhsend.php

So as in the example, Capture anything within a template and assign it to a var, the var is then appended to the $header....

It must be in order tho, and $xoopsOption["xoops_module_header"] should equal something before its appended, so needs to be before the header.php in our systems modules.

N B with U
Transfer Print PDF Bookmark Top
Top Previous Topic Next Topic
Register To Post