Have got a one page site set up with two sliders (soon to be more).
I've got seperate templates for two different regions that each have a slider. The editable regions are then displayed in index.php.
I've used your code above to create a slider.php (gallery.php in your example) and two non clonable templates, events.php & repairs.php.
If I use events.php as products.php from your example I am having difficulty displaying in the main index.php.
The following seems to work
- Code: Select all
<!-- All variables of 'gallery.php' are available here -->
<li><img class="tns-lazy-img" src="" data-src="<cms:show gg_image />"
alt="<cms:show k_folder_name />" title="<cms:show k_page_title />" />
I am trying to figure out how to create a new slider for repairs.php and only display its images.
I have tried to create a new editable in slider.php that points to repairs.php for masterpage and is named slider_repairs_img, but I keep getting all images shown.
ie. In the admin section I can upload images to events.php and repairs.php and it shows the correct number. When displayed using the above it displays all the images in slider.php.
I hope this makes sense. If any one can point me somewhere I'd be very grateful.
EDIT: To be clear, what i'm trying to do is have a single slider template which can be used in multiple places, automatically creating folders for each instance. At the moment it is for two sliders, but will be used for each blog entry also.
EDIT: All done in a one page site (ie index.php displaying editable regions from section templates)