Increasing number of images.

Integration of Magic Zoom Plus from http://www.magictoolbox.com with Actinic.
Post Reply
norman
Site Admin
Posts: 1242
Joined: Sat Feb 07, 2004 9:55 pm

Increasing number of images.

Post by norman » Tue Mar 27, 2012 11:17 pm

Adding more images to this patch.

INSTALLATION

To increase the number of images for Products and / or Fragments do the following:

CREATING VARIABLES

Go to Design / Library / Variables / Zoom Images and click the [+] to expand the list.
1) Right-click ZoomImage6 and choose Copy
2) Double-click that new Variable "ZoomImage6(Copy)" to open its definition.
3) Change Name to be "ZoomImage7".
4) Change Prompt to be "Zoom Image 7".
5) Change Description to be "The main alternative image 7"
OK out.

Repeat from (1) above using 8, 9, etc until you have as many as needed.
If you reach 10 and above, then in step (4) make the prompt "Zoom Image10", "Zoom Image11", etc.
I.e. there should be no space between Zoom Image and the number for numbers 10 and above.

Now repeat the entire process (1-5 above) for ZoomAlt6 - renaming to ZoomAlt7, etc as many times as needed.

EXPANDING LAYOUTS

Switch to the Layouts tab.

Go to "Zoom Image Layout" and click the [+] to expand the list.
6) Open Magic Zoom Image List (you can copy / paste the entire layout into an external text editor if you prefer).
Look for the line:

'<actinic:variable name="ZoomImage6" encoding="perl" selectable="false" />');

Change this to be (we we're just adding one more variable):

'<actinic:variable name="ZoomImage6" encoding="perl" selectable="false" />',
'<actinic:variable name="ZoomImage7" encoding="perl" selectable="false" />');

And if we're adding two more variables it would be:

'<actinic:variable name="ZoomImage6" encoding="perl" selectable="false" />',
'<actinic:variable name="ZoomImage7" encoding="perl" selectable="false" />',
'<actinic:variable name="ZoomImage8" encoding="perl" selectable="false" />');

7) Further down this layout is another line:

'<actinic:variable name="ZoomAlt6" encoding="perl" selectable="false" />');

Repeat the same process there (e.g. if just adding one more variable):

'<actinic:variable name="ZoomAlt6" encoding="perl" selectable="false" />',
'<actinic:variable name="ZoomAlt7" encoding="perl" selectable="false" />');

And if we're adding two more variables it would be:

'<actinic:variable name="ZoomAlt6" encoding="perl" selectable="false" />',
'<actinic:variable name="ZoomAlt7" encoding="perl" selectable="false" />',
'<actinic:variable name="ZoomAlt8" encoding="perl" selectable="false" />');

OK out to save the changes made.

8) Similar changes need to be made to layouts:-

Magic Zoom First Product Image
Magic Zoom First Fragment Image
Magic Zoom Fragment Image List
Fragment Image / Standard Fragment Image
Product Image / Standard Product Image

9) Revisit Fragment Image / Standard Fragment Image and immediately below <!-- Magic zoom prefix V2.12 -->
there is a blockif. Double-click that to edit it.
Extend it by adding

OR (<actinic:variable name="ZoomImage7" /> != "")
OR (<actinic:variable name="ZoomImage8" /> != "")

as required.

There is another blockif immediately below <!-- Magic zoom suffix V2.10 -->
extend it as above.

10) Revisit Product Image / Standard Product Image and immediately below <!-- Magic zoom prefix V2.12 -->
there is a blockif. Double-click that to edit it.
Extend it by adding

OR (<actinic:variable name="ZoomImage7" /> != "")
OR (<actinic:variable name="ZoomImage8" /> != "")

as required.

There is another blockif immediately below <!-- Magic zoom suffix V2.10 -->
extend it as above.

Whew! That's it for Products / Fragments.


If you want this capability on Extended Info pages, do the following:-

CREATING VARIABLES

Go to Design / Library / Variables / Extended Info Zoom Images and click the [+] to expand the list.
1) Right-click ExtendedInfoZoomImage6 and choose Copy.
2) Double-click that new Variable "ExtendedInfoZoomImage6(Copy)" to open its definition.
3) Change Name to be "ExtendedInfoZoomImage7".
4) Change Prompt to be "Extended Info Zoom Image 7".
5) Change Description to be "The Extended Info alternative image 7".
OK out.

Repeat from (1) above using 8, 9, etc until you have as many as needed.
If you reach 10 and above, then in step (4) make the prompt "Extended Info Zoom Image10", "Extended Info Zoom Image11", etc.
I.e. there should be no space between Image and the number for numbers 10 and above.

Now repeat the entire process (1-5 above) for ExtendedInfoZoomAlt6 - renaming to ExtendedInfoZoomAlt7, etc as many times as needed.

EXPANDING LAYOUTS

Switch to the Layouts tab.

Go to "Zoom Image Layout" and click the [+] to expand the list.
6) Open Magic Zoom Extended Info Image List (you can copy / paste the entire layout into an external text editor if you prefer).
Look for the line:

'<actinic:variable name="ExtendedInfoZoomImage6" encoding="perl" selectable="false" />');

Change this to be (we we're just adding one more variable):

'<actinic:variable name="ExtendedInfoZoomImage6" encoding="perl" selectable="false" />',
'<actinic:variable name="ExtendedInfoZoomImage7" encoding="perl" selectable="false" />');

And if we're adding two more variables it would be:

'<actinic:variable name="ExtendedInfoZoomImage6" encoding="perl" selectable="false" />',
'<actinic:variable name="ExtendedInfoZoomImage7" encoding="perl" selectable="false" />',
'<actinic:variable name="ExtendedInfoZoomImage8" encoding="perl" selectable="false" />');

7) Further down this layout is another line:

'<actinic:variable name="ExtendedInfoZoomAlt6" encoding="perl" selectable="false" />');

Repeat the same process there (e.g. if just adding one more variable):

'<actinic:variable name="ExtendedInfoZoomAlt6" encoding="perl" selectable="false" />',
'<actinic:variable name="ExtendedInfoZoomAlt7" encoding="perl" selectable="false" />');

And if we're adding two more variables it would be:

'<actinic:variable name="ExtendedInfoZoomAlt6" encoding="perl" selectable="false" />',
'<actinic:variable name="ExtendedInfoZoomAlt7" encoding="perl" selectable="false" />',
'<actinic:variable name="ExtendedInfoZoomAlt8" encoding="perl" selectable="false" />');

OK out to save the changes made.

8) Similar changes need to be made to layouts:-

Magic Zoom First Extended Info Image
Extended Information Image / Standard Extended Information Image

9) Revisit Extended Information Image / Standard Extended Information Image and immediately below <!-- Magic zoom prefix V2.12 -->
there is a blockif. Double-click that to edit it.
Extend it by adding

OR (<actinic:variable name="ExtendedInfoZoomImage7" /> != "")
OR (<actinic:variable name="ExtendedInfoZoomImage8" /> != "")

as required.

There is another blockif immediately below <!-- Magic zoom suffix V2.10 -->
extend it as above.
Norman

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

Re: Increasing number of images.

Post by norman » Tue Mar 27, 2012 11:26 pm

Here is the same thing as above described in a different way:

Extending the number of Magic Zoom Plus Images.

There is a significant amount of work needed so only attempt this if you feel confident
in creating Variables and editing Layouts..

In Design /Library / Variables / Extended Info Zoom Images, right click ExtendedInfoZoomImage6 and choose copy.
Open that copy and change all 6 to 7.
Repeat until you have all the new variables you need changing 6 to 8, etc.


In Design /Library / Variables / Extended Info Zoom Images, right click ExtendedOInfoZoomAlt6 and choose copy.
Open that copy and change all 6 to 7.
Repeat until you have all the new variables you need changing 6 to 8, 9, etc.


In Design /Library / Variables / Zoom Images, right click ZoomImage6 and choose copy.
Open that copy and change all 6 to 7.
Repeat until you have all the new variables you need changing 6 to 8, 9, etc.


In Design /Library / Variables / Zoom Images, right click ZoomAlt6 and choose copy.
Open that copy and change all 6 to 7.
Repeat until you have all the new variables you need changing 6 to 8, 9, etc.

NOTE: If you go above 9 when creating variables, dont leave a space before the e.g. "7" in
the Prompt field for 10, 11, etc.
This helps them display in the correct sequence.


In Design /Library / Layouts / Extended Information Image, open Standard Extended Information Image.
There is a BlockIf just after <!-- Magic Zoom prefix V2.12 -->
Edit it to extend as below:

OR (<actinic:variable name="ExtendedInfoZoomImage7" /> != "")

repeat until all your new ExtendedInfoZoomImage variables are there.

Look for the BlockIf after <!-- Magic Zoom suffix 2... -->
Repeat the above for that BlockIf.

Still in that layout, look for 2 array statements.
Extend them to include your new ExtendedInfoZoomImage<n> and ExtendedInfoZoomAlt<n> variables.


In Design /Library / Layouts / Fragment Image, open Standard Fragment Image.
There is a BlockIf just after <!-- Magic Zoom prefix V2... -->
Edit it to extend as below:

OR (<actinic:variable name="ZoomImage7" /> != "")

repeat until all your new ZoomImage variables are there.

Look for the BlockIf after <!-- Magic Zoom suffix 2... -->
Repeat the above for that BlockIf.

Still in that layout, look for 2 array statements.
Extend them to include your new ZoomImage<n> and ZoomAlt<n> variables.


In Design /Library / Layouts / Product Image, open Standard Product Image.
There is a BlockIf just after <!-- Magic Zoom prefix V2... -->
Edit it to extend as below:

OR (<actinic:variable name="ZoomImage7" /> != "")

repeat until all your new ZoomImage variables are there.

Look for the BlockIf after <!-- Magic Zoom suffix 2... -->
Repeat the above for that BlockIf.

Still in that layout, look for 2 array statements.
Extend them to include your new ZoomImage<n> and ZoomAlt<n> variables.


In Design /Library / Layouts / Zoom Image Layout, open Magic Zoom Extended Info Image List.
In that layout, look for 2 array statements.
Extend them to include your new ExtendedInfoZoomImage<n> and ExtendedInfoZoomAlt<n> variables.


In Design /Library / Layouts / Zoom Image Layout, open Magic Zoom Extended Info Image List.
In that layout, look for 2 array statements.
Extend them to include your new ExtendedInfoZoomImage<n> and ExtendedInfoZoomAlt<n> variables.


In Design /Library / Layouts / Zoom Image Layout, open Magic Zoom First Extended Info Image.
In that layout, look for 2 array statements.
Extend them to include your new ExtendedInfoZoomImage<n> and ExtendedInfoZoomAlt<n> variables.


In Design /Library / Layouts / Zoom Image Layout, open Magic Zoom First Fragment Image.
In that layout, look for 2 array statements.
Extend them to include your new ZoomImage<n> and ZoomAlt<n> variables.


In Design /Library / Layouts / Zoom Image Layout, open Magic Zoom First Product Image.
In that layout, look for 2 array statements.
Extend them to include your new ZoomImage<n> and ZoomAlt<n> variables.


In Design /Library / Layouts / Zoom Image Layout, open Magic Zoom Fragment Image List.
In that layout, look for 2 array statements.
Extend them to include your new ZoomImage<n> and ZoomAlt<n> variables.


In Design /Library / Layouts / Zoom Image Layout, open Magic Zoom Image List.
In that layout, look for 2 array statements.
Extend them to include your new ZoomImage<n> and ZoomAlt<n> variables.


That should be it!!!
Norman

Post Reply