How can I add my custom javascript files or links to javascript files in
rendered pages (pages seen by end user, page visitor)?
Tried by adding to template page like this:
[code][#include "textpage.ftl" ]
[#assign title = content.title!"Hello Magnolia :-)"]
[#assign linkURL = model.url!]
[#assign linkText = model.title!]
<!DOCTYPE html>
<html>
<head>
<title>${title}</title>
...
[/code]
As I include textpage.ftl, it contains links like this:
[code]<script type="text/javascript"
src="http://8.8.8.8/sp/js/jquery.min.js"></script>
<script type="text/javascript"
src="http://8.8.8.8/sp/js/jquery.Jcrop.js"></script>
<script type="text/javascript"
src="http://8.8.8.8/sp/js/detect-z.min.js"></script>
<script type="text/javascript" src="http://8.8.8.8/sp/js/html2.js"></script>
...[/code]
When I add it in template page, they are shown inside html but browser does not
execute them:
[img]http://i.imgsafe.org/8e3638f.png[/img]
What I expect is that javascript is in the main, page header so they should be
here:
[img]http://i.imgsafe.org/90cffa7.png[/img]
This is crucial, as browser could then process custom javascripts and then user
can use them on final page.
What is methodology to implement this functionality in Magnolia?
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=9868e5f8-7b83-4301-94e3-32f11241c782
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------