Home | Registration | Catalog | Resources | Hosting | Services | Support | Contact Us | Downloads | Press Room | Search

Give Your Web Site A Professional Makeover Quickly And Easily DPA Software
Dynamic Navigation  

 

Subscribe to our

Newsletter

Email Address

 

Login

Bookmark this Page
 

Up
Shared Border Tip
Resizing Images
Colorize Template
Sound Editing
Non-FP Web Applets
FP Rollover Buttons
Shared Border Info
Dynamic Navigation
Page Redirection
Using FX Templates
Designing STs
Theme Attributes
Picture Bullets
Multiple STs
STS Super Themes
Using FX Splash Page
Frames and Effects
Replace Component
Matching Colors
Button Bar Helper
Auto Sizing
Go To Slide
Screen Capture
Media Maker
Link Bars
Tip of the Day
PFX Inline Frames
Customize Splash
Background Image
Search Engine
Quick Search
DWT Web
FP2003 FAQs
Spacer GIFs
Apache Splash Pages
Borders Meta Tag
SSE Template Pages
Search PDF Files
_frontlook Folder
Auto Backups
FP Templates
SSE Clear Button
SSE Area Menu
SSE Optimization

 

Downloads
FREE STUFF
Press Room
Search

Shopping Cart
 

No Items 

 

Check Out

 

 

Need FrontPage?

 

Great Price!

 

FrontLook.com Newsletter Tip

Volume 1 - Issue 7 - October 2001

Dynamic Navigation Bars in the Super Theme Web
By David Pfeiffer of FrontLook.com

Customers have asked us how we implemented our left border navigation system on our web site. It is really quite simple if you are willing to use a little Active Server Page (ASP) code and are running a Microsoft server both locally and remotely. Here are the advantages and disadvantages of the navigation system:
 
Advantages:
- Specify a different type of navigation bar (i.e., child pages under home, same level, parent level or child level) for every page in the web. 
- Use multiple navigation bar types on any page.
- Compact, easy-to-use and understand navigation system for the user of the web site. Check out the way in which our left navigation bar operates on this web site.
Disadvantages:
- Every page in the web must be an Active Server Page using the .asp extension. Also your will have to add a little ASP code to the shared border and then add one line of ASP code to each page to tell the system which navigation bar(s) you want to present to the user for the current page.
- The web must be served by a Microsoft server supporting ASP both locally and remotely. This means that you will need to run a local web server like PWS or IIS to preview the web locally.
- The FrontPage Normal view and Preview will display all the navigation bars in the left border until you Preview in Browser. 

The Active Server Page code used in this example is very simple and a great way to get familiar with the power of ASP. So lets get started.

Step 1: If your web is a disk web, move the web to a local web server
You can tell you are running a disk web if the top folder in the FrontPage Folders list starts with a drive letter like "c:\..." instead of "http://...". If your web is a served web, you can go to Step 2.

If you are running a disk web, then you need to move the web to an Active Server Pages (ASP) capable web server. The Personal Web Server (PWS) that came w/ FP2000 or Windows 2000's Internet Information Server (IIS) are both ASP servers. The easiest way to do this is to use the publish web feature of FrontPage to publish the disk web to the served web. 

Use the PWS or IIS web manager to determine the local server's URL. Also make sure the server has the FrontPage extensions installed on it (this is typically the case). See your Operating System or FrontPage documentation for more information.

Now bring up your disk web in FrontPage and select the File->Publish Web... and enter your local server's web URL in the location text field and press OK. The disk web will now be published to the web server. You can then bring the new served web up in FrontPage and go to Step 2.

Step 2: Add a Same Level and Child Level navigation bars to the Left Border
Bring up the web site you wish to add the ASP based navigation system to. If you started with a typical Super Theme web or template, you will already have a "Pages under home" navigation bar in the left shared border. Go to the _border folder and bring up the left shared border in the FrontPage editor. 

Note: if you cannot see the "_borders" directory in your FrontPage Folders list, then go to the Tools menu and Select the "Web Settings..." item. The Web Settings dialog will appear. Select the "Advanced" tab and check the "Show Hidden Files and Folders". Then press the "OK" button. You will be asked to refresh your web, press the "OK" button and continue. Now you should be able to see the "_borders" directory in your FrontPage Folders list.

Now click on the navigation bar in the left shared border, press control-c (copy) and then press control-v (Paste) three times. This should create 3 copies of the navigation bar in the left shared border. 


left.htm after inserting 3 navigation bars

Double-click the top one and make sure it is set to "Child pages under home". Double-click the middle navigation bar and make sure it is set to "Same Level". Double-click the bottom navigation bar and make sure it is set to "Child Level". 


Setting the middle navigation bar to "Same Level"

Note: In my experience, I did not find the "Parent level" navigation type to be very useful. Therefore I did not add a parent navigation bar to the left shared border. Also the "Top" and "Back and Next" navigation bars were not added to the left shared border because the theme graphics are not designed to match the left shared border look.

Step 3: Add the ASP Code to the Left Shared border
Select the top navigation bar and then press the HTML view tab in FrontPage. You should notice an area of text selected, This is the "webbot" code for the selected navigation bar.


Middle Navigation webbot selection

Take note of the selected area, where it begins and ends. Now add the following text before the selected area:
     <%If ChildPagesUnderHome = True Then%>

And the following text after the selected area.
     <%End If%><br>

Now go back to the Normal mode in FrontPage, select the middle navigation bar and then press the HTML tab to go to HTML mode. Take note of the selected area, where it begins and ends. Now add the following text before the selected area:
     <%If SameLevel = True Then %>

And the following text after the selected area.
     <%End If %><br>

Now go back to the Normal mode in FrontPage, select the bottom navigation bar and then press the HTML tab to go to HTML mode. Take note of the selected area, where it begins and ends. Now add the following text before the selected area:
     <%If ChildLevel = True Then %>

And the following text after the selected area.
     <%End If %>


After adding the ASP code to the Left shared border

Now save and close the left.htm page. You will now notice 3 sets of navigation bars in the left shared border of every page in your web that uses shared borders.

Step 4: Create the Navigation Structure
Now you will need to organize your web into an information hierarchy. The Home page will be at the top level and then first level locations underneath the Home page.


Navigation view of a multi-level product web.

The child pages under the home page will appear in the top shared border's navigation bar and on the top navigation bar of the left shared border.

Note: We recommend that you set the top shared border's navigation bar to "Child pages under home". With this setting, pages at the top level will NOT be linked to directly in the web structure. I put pages here that I don't want accessed in the normal web structure, i.e., page that are global to the entire web that might be accessed via special buttons (See tip 5 for how to make these special buttons) or non-public URLs.

Tip: You can use External Navigation Links to place a page multiple times in the web structure.

Step 5: Add a Code to each page in the web to enable one or more Navigation Bars
Now bring up each page in the web and decide which navigation bar you would like to have on this page. I typically look at the buttons in the left shared border and figure out which set of buttons is best suited for the page. 

Then switch to HTML mode and add one (or more) of the following lines of code to the top of the page. 

     <%ChildPagesUnderHome = True%>

to select the "Child Pages under home" navigation bar, or

     <%SameLevel = True%>

to select the "Same Level" navigation bar, or

     <%ChildLevel = True %>

to select the "Child Level" navigation bar,

Important: This code segment must be topmost text on the page.


ASP Code on the page to select which Navigation Bar to display

Step 6: Rename the pages in your web to use the ".asp" extension
Now rename the pages in the web that use the left shared border to use the ".asp" extension instead of the typical ".htm" or ".html" extension. 

Now you can preview your page in the browser by selecting the File->Preview in Browser... item. Navigate the web site and make adjustments to the navigation as you wish.

And That's It!
Using this process you can create rich hierarchical navigation structures, making it easier for your users to find their way around your web site.

 
Tip of the Month Contributed by:  David Pfeiffer, http://www.frontlook.com

 

 

DPA Software

Copyright 2004 DPA Software - All Rights Reserved

Last Modified : 03/06/2008 11:15 PM

We accept the following payment forms
POs and Checks and PayPal accepted
Privacy
Statement
Questions or Problems?
 Click here
Download Policy
Secured by SSL Certificate

All products come with a

FrontLook, Theme Chameleon, Image Chameleon and FrontLook Super Themes are trademarks of DPA Software. Microsoft FrontPage, SharePoint, Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Java is a trademark of Sun Microsystems. *PC Magazine is a registered trademark of Ziff Davis Publishing Holdings Inc. Used under license from Ziff Davis Media Inc.