Adding script to (specific) pages

Two script-related questions:

 

A. Other than using this product, how can JavaScript libraries (or even CSS) be added to the <head> of specific pages, in this case:

  • Photos Home (m/photos/home/)
  • Custom pages (/page/page-uri/)

Adding references to /templates/template-name/_header will add them to every page which is unnecessary.

 

B. How can <script> blocks be added to pages in Page Builder (Admin > Builders > Pages Builder ) so they can be edited? Adding them to HTML Blocks inserts the script blocks on displayed pages, but they can't be accessed in the editor after they're saved.

 

Is there some kind of trick to do this?

 

Thanks in advance!

Quote · 15 Nov 2015

There are a couple of head_injection modules in the market and I suggest using them.  You can try inserting the JS in the page templates but some of those page templates are shared across pages.

Geeks, making the world a better place
Quote · 15 Nov 2015

This was a list we were putting together; as you can see, some pages are shared.

 

https://www.boonex.com/forums/topic/Page-Templates-List.htm

Geeks, making the world a better place
Quote · 15 Nov 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.