Click to See Complete Forum and Search --> : Nav Bar Issue


SRAM
05-29-2009, 03:38 PM
I have a nav bar that ive created and i need to add some new links, but currently ill have to add it to ever single page. how can i setup a template from a pre existing site and apply it without breaking links? thanks in advance.

SRAM
06-04-2009, 12:30 PM
100 views and no help :(

who
06-20-2009, 06:55 PM
Your best way to tackle this problem could be to use Dreamweaver's 'Find And Replace' function.
Edit > Find And Replace

Copy all the code from your existing nav bar then paste it into the 'find' box.
Then type all the nav bar code with the new links added and paste that into the 'Replace' box.

Select 'Entire Current Local Site' in the 'Find In' box and select 'Source Code' in the search box.

Then click 'Replace all'.

Be warned that any pages that you don't have open within Dreamweaver can't be 'undone' so it's a good idea to copy all the current files first just in case.

eCat
06-25-2009, 08:42 PM
Dreamweaver also has a templating feature which allows you to create a template and apply it to your site. It's a lot of work up front, but it will save time in the end when all you have to do is change the .dwt file rather than every page in your site.

Find & replace is great as long as what you're searching for doesn't have any variation at all - even an extra space can confuse it.

You could also change your nav bar to an include file. Then you would just change the include and those pages that "include" it would change with it.

eCat