[Solved]Products module images - jQuery issue
Posted: Tue Aug 13, 2013 2:44 am
Using 1.11.7 and up todate modules
Nearly finished the Detail Template which contains a block of images. I want each image to show larger version when clicked.
Part of Detail Template:
This works except large images appear on new page instead of in a lightbox.
This is what I have in the Page Specific Metadata section of the page that displays the Detail Template:
I placed the 3 files (css and 2 js scripts) in the root. This is probably the wrong place?
Thanks to Rolf for earlier help which has got me this far.
[Later] Have just noticed I already have the following on the page:
Could this be causing a problem?
Thanks
Nearly finished the Detail Template which contains a block of images. I want each image to show larger version when clicked.
Part of Detail Template:
Code: Select all
<div id="imagebox">
<ul class="img">
<li><div>
<a href="{$entry->file_location}/{$entry->fields.photo1->value}"><img src="{$entry->file_location}/{$entry->fields.photo1->thumbnail}"></a></div></li>
<li><div>
<a href="{$entry->file_location}/{$entry->fields.photo2->value}"><img src="{$entry->file_location}/{$entry->fields.photo2->thumbnail}"></a></div></li>
<li><div>
<a href="{$entry->file_location}/{$entry->fields.photo3->value}"><img src="{$entry->file_location}/{$entry->fields.photo3->thumbnail}"></a></div></li>
</ul></div>This is what I have in the Page Specific Metadata section of the page that displays the Detail Template:
Code: Select all
<link rel="stylesheet" type="text/css" href="jquery.lightbox-0.5.css" media="screen" />
<__script__ type="text/javascript" src="jquery.js"></__script>
<__script__ type="text/javascript" src="jquery.lightbox-0.5.js"></__script>
<__script__ type="text/javascript">
$(function() {
$('#gallery a').lightBox();
});
</__script>Thanks to Rolf for earlier help which has got me this far.
[Later] Have just noticed I already have the following on the page:
Code: Select all
<__script__ type="text/javascript" src="mysite/lib/jquery/js/jquery-1.7.2.min.js"></__script>
<__script__ type="text/javascript" src="mysite/lib/jquery/js/jquery-ui-1.8.21.custom.min.js"></__script>
<__script__ type="text/javascript" src="mysite/lib/jquery/js/jquery.ui.nestedSortable-1.3.4.js"></__script>
<__script__ type="text/javascript" src="mysite/lib/jquery/js/jquery.json-2.3.min.js"></__script>
Thanks