Topic: Problem embedding into Joomla website [SOLVED]
I know there is a guide and other posts on this subject, but I'm banging my head against a brick wall.
I currently have a working gallery embedded into a basic html page (old website) (it's a Flickr gallery)
I am converting the site to a CMS based one using Joomla 3.4 so I am now trying to embed into an article. I have changed the global configuration options and TinyMCE and JCE options all to allow script tags, and indeed these are no longer stripped out when I save the article, so I believe all the config is correct.
This is what the article looks like
<p>before embed</p>
<p><img src="member_galleries/google-logo.gif" alt="" /></p>
<!--START JUICEBOX EMBED-->
<script src="member_galleries/andygilbert/jbcore/juicebox.js" type="text/javascript"></script>
<script type="text/javascript">
new juicebox({
baseUrl: 'member_galleries/andygilbert/',
containerId: "juicebox-container",
galleryWidth: "100%",
galleryHeight: "80%",
backgroundColor: "rgba(255,255,254,1)"
});
</script>
<!--END JUICEBOX EMBED-->
<p>after embed</p>
I have put the img tag in there to demonstrate the the server is correctly interpreting the relative path to an image, and sure enough the google logo is displayed, so the paths seem ok.
I even put <script> alert('Hello World!'); </script> into the article to prove javascript was working and sure enough I got the pop up. Then I put that alert into a helloworld.js file in the member_galleries folder and put this in my article
<script src="member_galleries/helloworld.js" type="text/javascript"></script>
and again I got the pop up, showing again that the path seems correct.
Nonetheless, I have tried the following variations of baseUrl, both relative and absolute paths
baseUrl: 'member_galleries/andygilbert/',
baseUrl: '/member_galleries/andygilbert/',
baseUrl: 'joomla30/member_galleries/andygilbert/',
baseUrl: '/joomla30/member_galleries/andygilbert/',
,
and none work - (also setting the corresponding script src path to the juicebox.js with all those variants too)
There is no error message, just an absence of a gallery.
And here is the direct URL to the existing page that works fine (removed) non-Joomla version, albeit a bit slow to get started as there are a lot of images
If I use the URL directly to the index.html in the gallery (removed) this works fine, so shows that the gallery works.
I am completely stumped. Any ideas anyone?
Thanks
Al
Edited: to remove full URLs seeing as this is now solved and the URL are no longer required