Automated Back/Next Links
Posted: Thu Jul 17, 2003 3:13 pm
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 --]
[-- 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
Web Site Consultant
MyVirtualWebStaff
NYC, NY
212/439-7931 (voice)
760/281-7902 (fax)
jeremy@myvirtualwebstaff.com
http://www.MyVirtualWebStaff.com
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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 --]
[-- 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
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>