Need Some Advice about Site Structure

D

David Nelms

Need some advice ... I've done a website for a local high school.for the
athletics department. When I first started designing this site, I made the
decision to put each sport in a seperate folder. Many sports have sub
folders because of varsity and JV in each sport. I chose to have a main page
in each sport that had hyperlink in a left shared border. Through
discussions with others, they want me to add a menu that has submenus. I am
using Xaramenu and it creates and writes the script for the menus (creates
..js files along wih GIF buttons). Works fine for everything as long as it's
in the root directory . Any menu added to any page under a folder or
subfolder has to have it added in each page which would be a PIA if I had to
change a simple menu item. My question to evryone who have used DHMTL and JS
menus within shared borders, is this behaviour standard with menus. Do you
have to have all this info under each folder and subfolder?? I've looked at
a few more menu programs, but I'm still hesitant about using them because
they may require the same thing with the use of shared borders and
folders/subfolders. OR would I be better to move ALL my pages under the root
directory and be free to design my menus as I deem necessary within either
left or top shared borders.

David Nelms
Country Software & Web Design
 
V

Very Joyful \(Victoria\)

I have been working on a hobby site using Milonic's menu and I have not been
able to get around having to have every page in the root.
 
T

Thomas A. Rowe

I like to have my content setup in folders as well.

The problem with using DHTML/JavaScript in Share Borders and FP Include
Pages and SSI is that FP will not adjust the hyperlinks as you change levels
as it can with standard relative hyperlinks that are based on the location
of the page using the include and so you end up with links based on the
location of the actual Include Page.

The only solution around this issue is to use Absolute URL for all links.

--

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

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
S

Stefan B Rusynko

Or using linked JavaScript files
1) create identical scripts (w/ different relative paths) for each level of your folder structure
2) modify your script to include the folder level as a parameter passed from the page

For a simple mouseover use something like:

// MouseOvers Called with BODY onload="imageLoad(level)" in all pages
// where level = home (root level files) or page (1 level down), etc

In your script add:

var navPath = "../images/";
// Set the Images Path Relative to the normal 1 level down folders

Then call the function using the level parameter

function imageLoad(level) {
if (document.images) {
if (level == 'home') { navPath = "images/"; };
// Reset the Path for Home Page level if level was root level
signinoff = new Image(); signinoff.src = navPath + "btn_sign_in.gif";
// use the path level (navPath) in your functuion
............etc
--



| I like to have my content setup in folders as well.
|
| The problem with using DHTML/JavaScript in Share Borders and FP Include
| Pages and SSI is that FP will not adjust the hyperlinks as you change levels
| as it can with standard relative hyperlinks that are based on the location
| of the page using the include and so you end up with links based on the
| location of the actual Include Page.
|
| The only solution around this issue is to use Absolute URL for all links.
|
| --
|
| ==============================================
| Thomas A. Rowe (Microsoft MVP - FrontPage)
| WEBMASTER Resources(tm)
|
| FrontPage Resources, Forums, WebCircle,
| MS KB Quick Links, etc.
| ==============================================
| To assist you in getting the best answers for FrontPage support see:
| http://www.net-sites.com/sitebuilder/newsgroups.asp
|
| | > Need some advice ... I've done a website for a local high school.for the
| > athletics department. When I first started designing this site, I made the
| > decision to put each sport in a seperate folder. Many sports have sub
| > folders because of varsity and JV in each sport. I chose to have a main
| page
| > in each sport that had hyperlink in a left shared border. Through
| > discussions with others, they want me to add a menu that has submenus. I
| am
| > using Xaramenu and it creates and writes the script for the menus (creates
| > .js files along wih GIF buttons). Works fine for everything as long as
| it's
| > in the root directory . Any menu added to any page under a folder or
| > subfolder has to have it added in each page which would be a PIA if I had
| to
| > change a simple menu item. My question to evryone who have used DHMTL and
| JS
| > menus within shared borders, is this behaviour standard with menus. Do you
| > have to have all this info under each folder and subfolder?? I've looked
| at
| > a few more menu programs, but I'm still hesitant about using them because
| > they may require the same thing with the use of shared borders and
| > folders/subfolders. OR would I be better to move ALL my pages under the
| root
| > directory and be free to design my menus as I deem necessary within either
| > left or top shared borders.
| >
| > David Nelms
| > Country Software & Web Design
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top