Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 03-13-2007, 09:17 AM   #1 (permalink)
Inactive
 
Join Date: 02-27-07
Posts: 44
iTrader: 0 / 0%
Latest Blog:
None

ball420 is liked by many
a nav bar

i'm trying to figure out what the best way to make a nav bar is that i would only have to change it in one place and it would change on all my pages? i'm not savy in php but i do know html know of any good tutorials or can you guide me in the right way??thanks a million for the replies
ball420 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2007, 09:34 AM   #2 (permalink)
v7n Mentor
 
DaveyBoy's Avatar
 
Join Date: 10-13-03
Location: England.
Posts: 6,183
iTrader: 0 / 0%
Latest Blog:
None

DaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest order
PHP includes are simple, you don't have to know PHP really.

Just insert this code wherever you want your nav to appear :

Code:
<?php include("nav.php"); ?>
Obviously, your navigation will go on a page called nav.php and all pages it is on must have the .php extension.
DaveyBoy is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2007, 09:41 AM   #3 (permalink)
Inactive
 
Join Date: 02-27-07
Posts: 44
iTrader: 0 / 0%
Latest Blog:
None

ball420 is liked by many
so basically the php document will be my templete and i can build all my pages aroud that. or do i jsut put this code into a layer and it can pull from the php document

Last edited by ball420 : 03-13-2007 at 09:51 AM.
ball420 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2007, 10:05 AM   #4 (permalink)
v7n Mentor
 
DaveyBoy's Avatar
 
Join Date: 10-13-03
Location: England.
Posts: 6,183
iTrader: 0 / 0%
Latest Blog:
None

DaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest orderDaveyBoy is a web professional of the highest order
Just build your document however you normally would, but whenever you want a nav bar to appear, insert that line of code into the document.
DaveyBoy is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2007, 10:07 AM   #5 (permalink)
v7n Mentor
 
Taltos's Avatar
 
Join Date: 11-22-06
Location: Phoenix, AZ
Posts: 1,816
iTrader: 0 / 0%
Latest Blog:
None

Taltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web pro
The php includes is an easy way to go but if you are not using php for anything else then it might be worth a look at Dreamweaver templates. If you are using DW already, then take a quick look at templates. That is the way I usually create my nav and the ability to change it in the template. Then DW updates all the pages created on that template for me. One change to the nav in the template and all pages change.
__________________
Experimenting
Taltos is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2007, 10:24 AM   #6 (permalink)
Inactive
 
Join Date: 02-27-07
Posts: 44
iTrader: 0 / 0%
Latest Blog:
None

ball420 is liked by many
that reply was really helpful because i thought that was the case with the templets but wasn't sure so i make the templete and then do use it for everypage i jsut open it and rename it to what the .html page will be called and when the original is changed it will change all of the rest. if i understand right or am i missing somthing?

thanks again
ball420 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2007, 11:29 AM   #7 (permalink)
Inactive
 
Join Date: 02-27-07
Posts: 44
iTrader: 0 / 0%
Latest Blog:
None

ball420 is liked by many
i figured this out Once you have created a page which will be the same structure as the template all you need to do is, Go to Modify/Template/Apply Template to page but now a new issue i'm having trouble maing a region editable ex i have a layout cell with some tables i want to make them all editable i choose Modify/Template/make attribute editable but it still won't make it editable? what am i doing wrong
ball420 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2007, 11:32 AM   #8 (permalink)
v7n Mentor
 
Taltos's Avatar
 
Join Date: 11-22-06
Location: Phoenix, AZ
Posts: 1,816
iTrader: 0 / 0%
Latest Blog:
None

Taltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web proTaltos is a highly respected web pro
You are pretty close. What I usually do is create the visual look and feel with junk text in text areas and then do a "File >> Save as Template" in DW. Then to create a page from that template, just do:

1. Select File > New.
The New Document dialog box opens.

2. Click the Templates tab.

3. In the Templates For list, select the Dreamweaver site that contains the template you want use, then select a template from the list on the right.
For more information about options in this dialog box, see Setting options in the General tab of the New Document dialog box.

4. Click Create.
The new document opens in the Document window.

5. Save the document (see Saving a new document).

This is just straight out of DW help but sometimes, just the right help doc can be tough to find if you don't have the right words yet to search for.

DW does a pretty good job of sticking default editable regions into a template. You can add or change the default editable regions. Just do a search in DW help for "template editable region" and see what you get.

Then when you want to change all pages made from the template, edit the template rather than each page. When you save the template after editing, it will ask you if you want to update all pages based on this template. Just tell it yes.

Hope this helps. It is worth getting comfortable with as it makes maintaining common parts of a site very easy and quick.
__________________
Experimenting
Taltos is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-13-2007, 12:01 PM   #9 (permalink)
Inactive
 
Join Date: 02-27-07
Posts: 44
iTrader: 0 / 0%
Latest Blog:
None

ball420 is liked by many
thanks a million you jsut opened a huge horizon for me thanks
ball420 is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-06-2007, 10:48 AM   #10 (permalink)
Inactive
 
Join Date: 03-31-07
Posts: 39
iTrader: 0 / 0%
Latest Blog:
None

I-Got-IT! is liked by many
Quote:
Originally Posted by DaveyBoy View Post
PHP includes are simple, you don't have to know PHP really.

Just insert this code wherever you want your nav to appear :

Code:
<?php include("nav.php"); ?>
Obviously, your navigation will go on a page called nav.php and all pages it is on must have the .php extension.
Yes, PHP includes is always the easiest! IFrames can be used for this case as well, but I'd suggest PHP includes.
I-Got-IT! is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:31 AM.
© Copyright 2008 V7 Inc