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:

<? $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

RafaelGP
 
nteaviation replied on at Permalink Reply
nteaviation
*Edit: ACK, this is for javascript. Most likely disregard.
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 :)
nteaviation replied on at Permalink Reply
nteaviation
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.”
RafaelGP replied on at Permalink Reply
RafaelGP
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!
RafaelGP replied on at Permalink Reply
RafaelGP
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!
nteaviation replied on at Permalink Reply
nteaviation
Glad you found your answer :) I am always glad to help!