Equivalent of 'Header Extra Content' for the bottom of the page?
Permalink
Thank you very much in advance for helping me.
Is there an equivalent of 'Header Extra Content' for the bottom of the page? Just before the </body> tag.
There is something similar in Dashboard>Sitewide Settings>Tracking Code, but that adds the same code to all the pages.
I would like to be able to add different scripts in every page.
Currently what I do is adding this to my template:
and then I add a PHP Block with all my scripts, if I need it.
In there a most elegant solution?
Cheers
Is there an equivalent of 'Header Extra Content' for the bottom of the page? Just before the </body> tag.
There is something similar in Dashboard>Sitewide Settings>Tracking Code, but that adds the same code to all the pages.
I would like to be able to add different scripts in every page.
Currently what I do is adding this to my template:
<? $a = new Area('Scripts'); $a->display($c); ?>
and then I add a PHP Block with all my scripts, if I need it.
In there a most elegant solution?
Cheers
How about this (fromhttp://www.concrete5.org/documentation/developers/system/directory-...
/elements
The elements directory is a place for you to keep snippets of PHP code reused throughout your site. Examples of this might include a header menu or a reused sidebar. Elements are presentational in nature; if you have special functions or libraries you want to reuse for your website, these should go in ”/libraries” or ”/helpers.”
/elements
The elements directory is a place for you to keep snippets of PHP code reused throughout your site. Examples of this might include a header menu or a reused sidebar. Elements are presentational in nature; if you have special functions or libraries you want to reuse for your website, these should go in ”/libraries” or ”/helpers.”
Thanks for taking some time to help me.
I took a look at this page but it only advise about where to put re-usable php files (in the elements folder).
It doesn't say anything about how to insert some code at the end of a template.
Thanks for trying any way.
Cheers!
I took a look at this page but it only advise about where to put re-usable php files (in the elements folder).
It doesn't say anything about how to insert some code at the end of a template.
Thanks for trying any way.
Cheers!
Thanks again for your help nteaviation!
I followed your link. That is a very helpful website, isn't it?
That particular article was very interesting, but this one:
http://www.onehat.com/blog/2010/03/concrete5-mod-moving-js-to-the-b...
is exactly what I was looking for!!!
Adding code in the header and then move it to the bottom of the page. Genius!!!
I will give it a go when I get some time.
Thanks for pointing me in the right direction!
Cheers!
I followed your link. That is a very helpful website, isn't it?
That particular article was very interesting, but this one:
http://www.onehat.com/blog/2010/03/concrete5-mod-moving-js-to-the-b...
is exactly what I was looking for!!!
Adding code in the header and then move it to the bottom of the page. Genius!!!
I will give it a go when I get some time.
Thanks for pointing me in the right direction!
Cheers!
Glad you found your answer :) I am always glad to help!
I found this:
http://www.onehat.com/blog/2010/04/concrete5-when-and-where-to-incl...
Look at the section "Template". Not sure if this is what you want or not, but I tried :)