Page 1 of 1

Page Template and Products

PostPosted: Mon Apr 22, 2002 4:39 pm
by Dennis Moore
Maybe I messed something...

But how do you build a page template that displays the products in three
columns? I assumed that if I changed the page layout option setting to 3
columns and set the page template as follows that the application would
automatically build my columns. It doesn't... Do I need copy code from the
default template to get this to work?


[--LOOP PRODUCTS--]
[--PRODUCT--]
[--END_LOOP PRODUCTS--]


TIA...

Re: Page Template and Products

PostPosted: Mon Apr 22, 2002 5:07 pm
by loren_d_c
You must have ShopSite v6 to work with columns in custom page templates, and
you can read the doumentation here:

http://www.shopsite.com/help/6.0/en-US/ ... .spec.html

Look for the LOOP PRODUCTS tag and notice that a variable called 'numcolumns'
can now be passed in the LOOP tag to specify the number of columns. This also
describes what will happen, basically that ShopSite will output a TR and /TR
tag after that many times through the loop.

So for the example bit of template code you pasted below, in ShopSite v6 you
would do this to make the Columns settings in Edit Page Layout affect the
number of columns the products are aligned in the page resulting from your
custom template:

[--LOOP PRODUCTS PAGE.Columns--]
[--PRODUCT--]
[--END_LOOP PRODUCTS--]

-Loren



Dennis Moore wrote:

Maybe I messed something...

But how do you build a page template that displays the products in three
columns? I assumed that if I changed the page layout option setting to 3
columns and set the page template as follows that the application would
automatically build my columns. It doesn't... Do I need copy code from the
default template to get this to work?

[--LOOP PRODUCTS--]
[--PRODUCT--]
[--END_LOOP PRODUCTS--]

TIA...

Re: Page Template and Products

PostPosted: Mon Apr 22, 2002 7:14 pm
by Dennis Moore
Thanks...this resolves my issue... I am currently running v5 on this site.
We will upgrade...

/dkm


"Loren" <loren_d_c@yahoo.com> wrote in message
news:3CC4A5BD.D4ABBD58@yahoo.com...
You must have ShopSite v6 to work with columns in custom page templates,
and
you can read the doumentation here:

http://www.shopsite.com/help/6.0/en-US/ ... .spec.html

Look for the LOOP PRODUCTS tag and notice that a variable called
'numcolumns'
can now be passed in the LOOP tag to specify the number of columns. This
also
describes what will happen, basically that ShopSite will output a TR and
/TR
tag after that many times through the loop.

So for the example bit of template code you pasted below, in ShopSite v6
you
would do this to make the Columns settings in Edit Page Layout affect the
number of columns the products are aligned in the page resulting from your
custom template:

[--LOOP PRODUCTS PAGE.Columns--]
[--PRODUCT--]
[--END_LOOP PRODUCTS--]

-Loren



Dennis Moore wrote:

Maybe I messed something...

But how do you build a page template that displays the products in three
columns? I assumed that if I changed the page layout option setting to
3
columns and set the page template as follows that the application would
automatically build my columns. It doesn't... Do I need copy code from
the
default template to get this to work?

[--LOOP PRODUCTS--]
[--PRODUCT--]
[--END_LOOP PRODUCTS--]

TIA...