Increasing number of images.

Adds a Lightbox slideshow to your products.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Increasing number of images.

Post by norman »

This example will add 2 new lightbox images. It should be simple to increase to any amount be expanding on what's below.

1) Go to Design / Library / Variables / Lightbox.
Right-click LightboxImage10 and choose Copy.
Double-click that copy and change Name and Prompt to "LightboxImage11".

Right-click LightboxImage10 and choose Copy.
Double-click that copy and change Name and Prompt to "LightboxImage12".

2) Go to Design / Library / Variables / Lightbox.
Right-click LightboxTitle10 and choose Copy.
Double-click that copy and change Name and Prompt to "LightboxTitle11".

Right-click LightboxTitle10 and choose Copy.
Double-click that copy and change Name and Prompt to "LightboxTitle12".

3) Go to Design / Library / Layouts / Lightbox Images.
Double-click Lightbox Image List to open it in an editor.
Look for the line:

Code: Select all

			'<actinic:variable name="LightboxImage10" encoding="perl" selectable="false" />');
amend it to be:

Code: Select all

			'<actinic:variable name="LightboxImage10" encoding="perl" selectable="false" />',
			'<actinic:variable name="LightboxImage11" encoding="perl" selectable="false" />',
			'<actinic:variable name="LightboxImage12" encoding="perl" selectable="false" />');
look for the line:

Code: Select all

				'<actinic:variable name="LightboxTitle10" encoding="perl" selectable="false" />');
amend it to be:

Code: Select all

				'<actinic:variable name="LightboxTitle10" encoding="perl" selectable="false" />',
				'<actinic:variable name="LightboxTitle11" encoding="perl" selectable="false" />',
				'<actinic:variable name="LightboxTitle12" encoding="perl" selectable="false" />');
OK out.

4) Go to Design / Library / Layouts / Lightbox Images.
Double-click Fragment Lightbox Image List to open it in an editor.
Look for the line:

Code: Select all

			'<actinic:variable name="LightboxImage10" encoding="perl" selectable="false" />');
amend it to be:

Code: Select all

			'<actinic:variable name="LightboxImage10" encoding="perl" selectable="false" />',
			'<actinic:variable name="LightboxImage11" encoding="perl" selectable="false" />',
			'<actinic:variable name="LightboxImage12" encoding="perl" selectable="false" />');
look for the line:

Code: Select all

				'<actinic:variable name="LightboxTitle10" encoding="perl" selectable="false" />');
amend it to be:

Code: Select all

				'<actinic:variable name="LightboxTitle10" encoding="perl" selectable="false" />',
				'<actinic:variable name="LightboxTitle11" encoding="perl" selectable="false" />',
				'<actinic:variable name="LightboxTitle12" encoding="perl" selectable="false" />');
OK out.
Norman
simonv
Posts: 1
Joined: Sun Oct 26, 2008 12:19 am

Re: Increasing number of images.

Post by simonv »

I have gotta say a big thank you to Norman for posting this.

The poor guy is on holiday and not only did he process my order for Lightbox within an hour of payment but he also helped me do this customization.

A point worth noting - If you go beyond the standard 10 images

While you are in:- Design - Library - Variables - Lightbox

Go to each variable - LightboxImage1 to 9

And change the "Prompt Value" for each one so that they are 01, 02, 03 etc

They will then display in sequence when you click the "Lightbox" tab within a product

Simon
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Re: Increasing number of images.

Post by norman »

You shouldn't need to amend the existing propts to 01, 02 if you copy LightboxImage10 and LightboxTitle10 and rename.

Items 1 through 9 have prompts of e.g. LightboxImage<space>1, LightboxImage<space>2, etc; and 10 onwards is like LightboxImage10, LightboxImage11, etc. Since space sorts above the digits the correct sequence should be displayed.
Norman
Post Reply