Page Template and Products

This is an archive of old posting to the User Forum

Page Template and Products

Postby Dennis Moore » Mon Apr 22, 2002 4:39 pm

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...
Dennis Moore
 

Re: Page Template and Products

Postby loren_d_c » Mon Apr 22, 2002 5:07 pm

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...
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Page Template and Products

Postby Dennis Moore » Mon Apr 22, 2002 7:14 pm

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...
Dennis Moore
 


Return to User Forum Archive

Who is online

Users browsing this forum: Google [Bot] and 22 guests