Page 1 of 1

Automated Back/Next Links

PostPosted: Thu Jul 17, 2003 3:13 pm
by Jeremy Bloom
Does anyone have experience with creating back/next buttons using SS¹s
technology?

As an example, the following code and instruction will allow for navigation
links showing 1 2 3 4 5, etc., as you can see at
(http://www.myvirtualwebstaff.com/shopsi ... page2.html). Each number
represents a page within a single category. My goal is to have the
surrounding links allow you to browse the pages within a category using
back/next links. To this point, I have not been able to use this technique
to allow for the back/next buttons.

Here is the code, given to me by Loren at ShopSite...

Using the LOOP LINKS in the page template, and define link as just the
number (put the
number of the page in some field like Link Text or something) in the DEFINE
LINK_TO_PAGE section of the template.

So here is some pseudo code that I haven't tried out yet:

[-- DEFINE LINK_TO_PAGE --]
[-- IF VAR.PageName PAGE.Name --]
[ [-- VAR.LoopNum --] ]
[-- ELSE --]
[ <a href="[--OUTPUT_DIRECTORY_URL--]/[--Page.FileName--]">[--
VAR.LoopNum --]</a> ]
[-- END_IF --]
[-- END_DEFINE LINK_TO_PAGE --]

Then in your DEFINE PAGE section, where you want this to show up:

[-- VAR.PageName PAGE.Name --]
Page [-- PAGE.LinkText --] of [-- PAGE.NumLinks --]
[-- VAR.LoopNum 1 --]
[-- LOOP LINKS --]
&nbsp;
[-- LINK --]
[-- VAR.LoopNum INC --]
[--END_LOOP LINKS --]

To do the Back and Next buttons would require more work but could be done,
probably by using a couple more LOOP LINKS sections somehow.

Once you have created all 3 pages and assigned them your custom template,
assign
them all to each other (use PowerEdit, Link Location field) so that the same
navigation will be on all 3 pages.




I realize there are a million ways to do this, but I would like to use SS if
possible, and am looking for any and all suggestions.

Please reply to (jeremy@myvirtualwebstaff.com).

Regards,
Jeremy

Jeremy Bloom

Web Site Consultant
MyVirtualWebStaff
NYC, NY
212/439-7931 (voice)
760/281-7902 (fax)
jeremy@myvirtualwebstaff.com
http://www.MyVirtualWebStaff.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Re: Automated Back/Next Links

PostPosted: Fri Jul 18, 2003 4:30 am
by Gary Kennedy
Automated Back/Next LinksCheck out my site created by Ecom assembler. The program will create pages as needed and create all the hyperlink automatically. It make my life simple.

Gary Kennedy
VP Internet

Marty Shoes Inc.
http://www.martyshoes.com
gkennedy@martyshoes.com

Marty Shoes Inc.
60 Enterprise Ave. N.
Secaucus, NJ 07094
Toll Free: 800-262-7897
Fax: 201-319-1446
"Jeremy Bloom" <jeremy@myvirtualwebstaff.com> wrote in message news:BB3C97CC.927%jeremy@myvirtualwebstaff.com...
Does anyone have experience with creating back/next buttons using SS's technology?

As an example, the following code and instruction will allow for navigation links showing 1 2 3 4 5, etc., as you can see at (http://www.myvirtualwebstaff.com/shopsi ... page2.html). Each number represents a page within a single category. My goal is to have the surrounding links allow you to browse the pages within a category using back/next links. To this point, I have not been able to use this technique to allow for the back/next buttons.

Here is the code, given to me by Loren at ShopSite...

Using the LOOP LINKS in the page template, and define link as just the number (put the
number of the page in some field like Link Text or something) in the DEFINE
LINK_TO_PAGE section of the template.

So here is some pseudo code that I haven't tried out yet:

[-- DEFINE LINK_TO_PAGE --]
[-- IF VAR.PageName PAGE.Name --]
[ [-- VAR.LoopNum --] ]
[-- ELSE --]
[ <a href="[--OUTPUT_DIRECTORY_URL--]/[--Page.FileName--]">[--
VAR.LoopNum --]</a> ]
[-- END_IF --]
[-- END_DEFINE LINK_TO_PAGE --]

Then in your DEFINE PAGE section, where you want this to show up:

[-- VAR.PageName PAGE.Name --]
Page [-- PAGE.LinkText --] of [-- PAGE.NumLinks --]
[-- VAR.LoopNum 1 --]
[-- LOOP LINKS --]
&nbsp;
[-- LINK --]
[-- VAR.LoopNum INC --]
[--END_LOOP LINKS --]

To do the Back and Next buttons would require more work but could be done,
probably by using a couple more LOOP LINKS sections somehow.

Once you have created all 3 pages and assigned them your custom template, assign
them all to each other (use PowerEdit, Link Location field) so that the same
navigation will be on all 3 pages.




I realize there are a million ways to do this, but I would like to use SS if possible, and am looking for any and all suggestions.

Please reply to (jeremy@myvirtualwebstaff.com).

Regards,
Jeremy

Jeremy Bloom

Web Site Consultant
MyVirtualWebStaff
NYC, NY
212/439-7931 (voice)
760/281-7902 (fax)
jeremy@myvirtualwebstaff.com
http://www.MyVirtualWebStaff.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Re: Automated Back/Next Links

PostPosted: Fri Jul 18, 2003 4:31 am
by Gary Kennedy
Automated Back/Next LinksSorry forgot to mention you can find information about Ecom at www.stoneedge.com

Gary Kennedy
VP Internet

Marty Shoes Inc.
http://www.martyshoes.com
gkennedy@martyshoes.com

Marty Shoes Inc.
60 Enterprise Ave. N.
Secaucus, NJ 07094
Toll Free: 800-262-7897
Fax: 201-319-1446
"Jeremy Bloom" <jeremy@myvirtualwebstaff.com> wrote in message news:BB3C97CC.927%jeremy@myvirtualwebstaff.com...
Does anyone have experience with creating back/next buttons using SS's technology?

As an example, the following code and instruction will allow for navigation links showing 1 2 3 4 5, etc., as you can see at (http://www.myvirtualwebstaff.com/shopsi ... page2.html). Each number represents a page within a single category. My goal is to have the surrounding links allow you to browse the pages within a category using back/next links. To this point, I have not been able to use this technique to allow for the back/next buttons.

Here is the code, given to me by Loren at ShopSite...

Using the LOOP LINKS in the page template, and define link as just the number (put the
number of the page in some field like Link Text or something) in the DEFINE
LINK_TO_PAGE section of the template.

So here is some pseudo code that I haven't tried out yet:

[-- DEFINE LINK_TO_PAGE --]
[-- IF VAR.PageName PAGE.Name --]
[ [-- VAR.LoopNum --] ]
[-- ELSE --]
[ <a href="[--OUTPUT_DIRECTORY_URL--]/[--Page.FileName--]">[--
VAR.LoopNum --]</a> ]
[-- END_IF --]
[-- END_DEFINE LINK_TO_PAGE --]

Then in your DEFINE PAGE section, where you want this to show up:

[-- VAR.PageName PAGE.Name --]
Page [-- PAGE.LinkText --] of [-- PAGE.NumLinks --]
[-- VAR.LoopNum 1 --]
[-- LOOP LINKS --]
&nbsp;
[-- LINK --]
[-- VAR.LoopNum INC --]
[--END_LOOP LINKS --]

To do the Back and Next buttons would require more work but could be done,
probably by using a couple more LOOP LINKS sections somehow.

Once you have created all 3 pages and assigned them your custom template, assign
them all to each other (use PowerEdit, Link Location field) so that the same
navigation will be on all 3 pages.




I realize there are a million ways to do this, but I would like to use SS if possible, and am looking for any and all suggestions.

Please reply to (jeremy@myvirtualwebstaff.com).

Regards,
Jeremy

Jeremy Bloom

Web Site Consultant
MyVirtualWebStaff
NYC, NY
212/439-7931 (voice)
760/281-7902 (fax)
jeremy@myvirtualwebstaff.com
http://www.MyVirtualWebStaff.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>