Reply
Dreamweaver template question
Old 04-26-2008, 01:16 PM Dreamweaver template question
bakerc's Avatar
Webmaster Talker

Posts: 727
Name: carl baker
Location: Lancashire, UK
I didn't know where to post this so if its in the wrong place please let me know.

I have created a new DW template and have navigation at the top and down the left.
I want to be able to add new pages to the links on the left in the template and have them duplicated thpughout the site (when I update the site with the template) - the links have a 'current' CSS style sttached which changes the button to show the page is the current one being viewed.

When I update using the template it removes all the CCS styling to that which is set in the left navigation to the template (which doesn't have a current style attached to the links) - it removes the class attribute in the HTML.

Is there a way of updating / adding links sitewide without effecting the existing styling of the links already on place?
I have tried to make the regions themselves editable but that doesn't work (when I do this the only option I get is 'class' which knocks the whole site out of whack).

Any help would be appreciated.

Thanks in advance.
__________________
Lifes as good as you make it...
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Sponsored Links (We share ad revenue):
 
Old 04-27-2008, 09:59 AM Re: Dreamweaver template question
LadynRed's Avatar
Super Moderator

Posts: 5,542
Location: Tennessee
Quote:
Is there a way of updating / adding links sitewide without effecting the existing styling of the links already on place?
Server-side includes. You can do it with PHP or ASP.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-27-2008, 03:31 PM Re: Dreamweaver template question
bakerc's Avatar
Webmaster Talker

Posts: 727
Name: carl baker
Location: Lancashire, UK
Thanks LadynRed.

I was hoping it wouldn't be something like that, its a little beyond my capabilities at the moment (until I learn more)

Many thanks for the reply anyway.
__________________
Lifes as good as you make it...
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 05-02-2008, 09:10 PM Re: Dreamweaver template question
toattractmoney's Avatar
Junior Talker

Posts: 1
Name: Kerrie
Location: www.toattractmoney.com
bakerc,

do you want your to top navigation a different style to your left side navigation thoughout your website (and you want both styles on your style sheet -css)? I had this problem through the week and it is possible. Let me know as Im unsure wht you need.
toattractmoney is offline
Reply With Quote
View Public Profile
 
Old 05-02-2008, 10:33 PM Re: Dreamweaver template question
Average Talker

Posts: 28
Name: Shawn Lindsey
Hello,
Which version of Dreamweaver are you using. Because dreamweaver has a nice little option called "find and replace" by hitting Cntrl +F it will bring up a window, and you can choose from different options (images, source code, text and more) and you can put in the oringial source code in the top line, and the new code in the bottom line (with the new links) and then choose folder, or sitewide, in the lookin tab, and it will go through and replace and change that code in everything in that folder or on that entire site.
__________________
**Free Tutorials, Free Tech Support, Cheap Computers, Web Hosting, Custom Computers, Web and Graphic Design....www.shawnsitsolutions.com **
ShawnITSolution is offline
Reply With Quote
View Public Profile
 
Old 05-03-2008, 02:36 AM Re: Dreamweaver template question
chrishirst's Avatar
Super Moderator

Posts: 10,596
Location: Blackpool. UK
Quote:
its a little beyond my capabilities at the moment (until I learn more)
It's really not difficult.

http://www.webmaster-talk.com/html-f...el-iframe.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-03-2008, 09:42 AM Re: Dreamweaver template question
bakerc's Avatar
Webmaster Talker

Posts: 727
Name: carl baker
Location: Lancashire, UK
Thanks Chrishirst,

That looks like it will do exactly what I need (and more), I will need to set some time aside to get into it, I think I understand the concept (the whole is greater than the sum of its parts sort of thing). Until I can set aside some time I will have to carry on as I am (still getting the basics of PHP).

Quote:
do you want your to top navigation a different style to your left side navigation thoughout your website (and you want both styles on your style sheet -css)? I had this problem through the week and it is possible. Let me know as Im unsure wht you need.
The top navigation is going to stay the same (theres only 5 links on it) so its the left side navigation I am trying to sort.

The left side navigation is laid out differently, the navigation has CSS and the current page link has a class of 'current' which alters the colour to show the page is the one being vied and sets the mouse icon to normal when hovered (so it looks like the link is inactive)

When I add a page, in order to get the link duplicated throughout the site I am currently adding the link to the template, I then need to remove the editable region so it duplicates throughout the site but doing this strips out the 'current' class on the links for that region, which then means I have to re-set that section of links to an editable region, update the site, then go though and apply the class to the pages again.

I have seperated the navigation to reduce the number of links I have to do this with but uts still a headache.

Quote:
Which version of Dreamweaver are you using. Because dreamweaver has a nice little option called "find and replace" by hitting Cntrl +F it will bring up a window, and you can choose from different options (images, source code, text and more) and you can put in the oringial source code in the top line, and the new code in the bottom line (with the new links) and then choose folder, or sitewide, in the lookin tab, and it will go through and replace and change that code in everything in that folder or on that entire site
would this not then remove the 'current' class thats been assigned to certain lnks?
So, what I want is a way of updating the site with new links without stripping out the 'currnet' CSS class assigned to that section of navigation (links)

From what I have read server side includes are obviously the best way of doing this but finding the time to learn server side includes is going to be hard at the moment.

Is there any way I can work smarter with what I already have - without using server side includes (I dont want to do half a job and second guess what I'm doing). Learning a new tool or function in DW will be much quicker, I have DW CS3
__________________
Lifes as good as you make it...

Last edited by bakerc : 05-03-2008 at 09:56 AM.
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 05-05-2008, 02:35 PM Re: Dreamweaver template question
bakerc's Avatar
Webmaster Talker

Posts: 727
Name: carl baker
Location: Lancashire, UK
Sorry to dump this but I figured its better than a new thread, does anyone now how to set file permissions in DW CS3? (such as for a .htaccess file)

Thanks.
__________________
Lifes as good as you make it...
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to Dreamweaver template question
 

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.17143 seconds with 14 queries