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


