Samples Product Information Home Page Download Pricing

Linked Templates

A typical use for linked templates would be to display a page of thumbnails which link to a more detailed page about a single product. Adding a Linked Template is as simple as selecting it on the Category Editor form.


If a template is selected for the Linked Template field, then it will be created at the same time as the Primary (HTML) template.


On the HTML Configuration form, the Max Rows and Max Columns setting applies only to the Primary template. The secondary, linked template will only display a single product at the full width of the frame.

Adding a Linked Template automatically changes the mouse click behaviour of the product image on the primary template. The default action when an image is clicked is to show that image at its native size unless an optional Link column has been included in the database. The optional Link allows you to display a different image or even a different webpage in the frame.
However, as expected, a mouse click will display the secondary, linked template when an image on the primary is clicked.

If you have enabled a cart, the cart is added only to the secondary template.

Lastly, as the secondary template displays only a single product, any Page Navigation options you have selected will only display on the primary template.

You can see a Linked Template in action by selecting Sample 2 on the Sample Page.


When a Linked Template is used, additional files are created.

In this screenshot you can see the original Baseball Gloves php and css files for the primary template.
The same category names are used for the secondary template except that -detail has been added for the secondary template and its style sheet.


Second Photo

On the Data View form, you can specify a second photo.

In a printed or PDF template, this photo is printed just like the first photo. In an HTML template though, the second photo behaves as a variable link.

If a Linked Template is not used, the default behavior when the Primary photo is clicked is to view that photo at its full size. If a Linked Template is used, then the default behavior is to open the linked template.
However, if a Second Photo is used, this behavior can be changed.

In the example above, clicking the Primary Photo will have the following effect:

No Linked Template
1) Open MakitaLarge.jpg at full size
2) Open Black1.jpg at full size
3) Open SpecSheet.pdf
4) Open a completely different webpage
5) Open Porter2.jpg at full size. (null.jpg is ignored)

With Linked Template
1) Open the Linked Template
2) Open the Linked Template
3) Open SpecSheet.pdf
4) Open a completely different webpage
5) Open the Linked Template

So, if the Second Photo field contains something other than the name of an image file (jpg, gif, png or bmp), then the default behavior will be over-ridden to show or link to the specified file or webpage.

On the Linked Template itself, the photo-click behavior is the same as the default behavior on the Primary Template - Image files show at their full size and other names link to documents or webpages.


Return to Tutorial Selection or Continue to the next chapter: A Dynamically Created PDF Catalog