Product Layout Changed based on NUMBER OF COLUMNS

Questions and answers about ShopSite Custom Templates

Product Layout Changed based on NUMBER OF COLUMNS

Postby tinpalace » Mon Aug 22, 2011 12:37 pm

Hi,

Is there a page column variable/value that I can check for on the product template?

I would like to change how the products display on a page based on the number of columns.

Example - in one column - the description is to the right. In a 3 column layout the description is below.

I would like to edit the template_product.sst template to display the product differently based on the number of columns of the page it is displayed on.

Thanks,

Luke

www.thegeekchic.ca
tinpalace
 
Posts: 6
Joined: Mon Aug 22, 2011 12:29 pm

Re: Product Layout Changed based on NUMBER OF COLUMNS

Postby ShopSite Lauren » Mon Aug 22, 2011 12:41 pm

In the page template, you can add the following VAR tag to the top, just below the DEFINE PAGE tag.
[-- VAR.Columns PAGE.Columns --]

Then in the product template you can use the VAR tag to determine the layout. For example...
[-- IF VAR.Columns "Three columns" --]
<td align="right">
[-- ELSE --]
<td align="left">
[-- END_IF --]
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 887
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Product Layout Changed based on NUMBER OF COLUMNS

Postby tinpalace » Mon Aug 22, 2011 3:00 pm

that worked beautifully

thank you very much!!!!
tinpalace
 
Posts: 6
Joined: Mon Aug 22, 2011 12:29 pm


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 33 guests