Navigation thru a directory of pages

B

birdman

I have a website that has a group of similar pages all in the same directory. Right now I have index page to select a particular page. However, what I would like is a means to allow the visitor to page forward and backward thru the directory (stopping when either first or last page is found). Any ideas other than to manually link each page?
 
J

Jim Buyens

You would generally have to program this in ASP, ASP.NET,
PHP, or some other environment that runs on the Web
server.

The code would get a directory listing of the folder in
question, find the entry for the current pages, and then
build links to the next and previous pages.

If you only have JavaScript available, you would have to
define and maintain an array that contained all your page
names, and then write code that finds the current page
and buils links to tne next and previous entries.

In either case, you coudl write the code once and then
include it in any number of pages.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------


-----Original Message-----
I have a website that has a group of similar pages all
in the same directory. Right now I have index page to
select a particular page. However, what I would like is
a means to allow the visitor to page forward and backward
thru the directory (stopping when either first or last
page is found). Any ideas other than to manually link
each page?
 
R

Ripper

What about the "back" and "next" navigation bars?
Jim Buyens said:
You would generally have to program this in ASP, ASP.NET,
PHP, or some other environment that runs on the Web
server.

The code would get a directory listing of the folder in
question, find the entry for the current pages, and then
build links to the next and previous pages.

If you only have JavaScript available, you would have to
define and maintain an array that contained all your page
names, and then write code that finds the current page
and buils links to tne next and previous entries.

In either case, you coudl write the code once and then
include it in any number of pages.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------



in the same directory. Right now I have index page to
select a particular page. However, what I would like is
a means to allow the visitor to page forward and backward
thru the directory (stopping when either first or last
page is found). Any ideas other than to manually link
each page?
 
J

Jim Buyens

Well, maybe, but isn't that tantamount to maintining the list manually
(albeit in Navigation view)?

The original question pertained to all the page in a folder.

For an example of a page thta does this, browse
http://www.interlacken.com/fp11extras/dyntable/dyntable.asp
This probably isn't the sort of page you'd want general Web visitors
to use, but it does illustrate the idea of reading a directory list
on the server and creating hyperlinks for each file.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
R

Ripper

Maybe, but you only have to do it once. All you do is drag each page in the
folder into the navigation view under the page where you'd like it to be,
then you can create a back/next navbar in a shared border and just include
that shared border on every page you want listed or add the navbar into each
page. Also, in the parent page, you can add a child level navbar which will
list each of the pages you want to be able to navigate.
You can also do it with ASP, JavaScript, PHP includes, etc....
 
T

Thomas A. Rowe

However in order to use shared border and navigation that is separate from the rest of the site, the
folder would have to be converted to a subweb / subsite.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top