Jump to content

How do you add to {$headoutput} and {$footeroutput} variables


innovator

Recommended Posts

Hi, while editing the template I need certain JS files added to the footer of the template footer.tpl what are the functions to add something to {$footeroutput} from within the template files.

 

as an example i need to be able to add <script src="templates/default/js/jquery.min.js"></script> to {$footeroutput} from a particular place so that, that code gets output in the appropriate template.

 

so need the api or function name to do that, and my code is in a .tpl file.

 

thanks

Link to comment
Share on other sites

so i got the follow code in my footer.tpl file, but it is not outputting "hello world!" in the document as expected, why would this be ?

 

{php}

function hello_world($vars){

return "hello world!";

}

 

add_hook( "ClientAreaFooterOutput", 1, "hello_world" );

{/php}

 

{$footeroutput}

</body>

</html>

Link to comment
Share on other sites

  • 8 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated