Using Text Links instead of the Extra Image Icons.

Display several small images against a main product. Clicking these images swaps the main product image.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Using Text Links instead of the Extra Image Icons.

Post by norman »

It is possible to create an alternative layout that uses Text Links instead of the Extra Image Icons.

SETUP

Go to Design / Library / Layouts / Extra Images.

Right-click Extra Image Table and choose Copy.

Rename that copy to be Text Only Extra Image Table.

Edit Text Only Extra Image Table.

Look for the lines:

Code: Select all

					echo "<img width=\"$iconwidth\" height=\"$iconheight\" src=\"$icontouse\"";
					echo " alt=\"$alttext\"";
Replace them with:

Code: Select all

					echo "<span ";
Look for the line:

Code: Select all

					echo " />";
Replace it with:

Code: Select all

					echo ">$alttext</span>";
OPERATION

In Product Details / Layout / Extra Images / Extra Image Layout,
choose Text Only Extra Image Table.

You can use variables (Product Details / Properties / Extra Images)
ExtraImage0 Alt Text, ExtraImage0 Alt Text, ExtraImage1 Alt Text, etc
as text for these links.

Altering the table tags around this text is outside the scope of free support but can be done by editing the layout created above.
Norman
Post Reply