homepage Welcome to WebmasterWorld Guest from 54.226.0.225
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Site Graphics and Multimedia Design
Forum Library, Charter, Moderators: not2easy

Site Graphics and Multimedia Design Forum

    
Editing Dreamweaver template
Adobe Dreamweaver 8
SanDiegoPaul




msg:3958989
 3:42 pm on Jul 24, 2009 (gmt 0)

I don't have the original template any more for this site started years ago. I now have the go-ahead to create/finish the website and need to edit code to allow multimedia and to put keywords in there too.

But the layout code is all grayed out in Dreamweaver because it was done with a template. Can somebody tell me how I can edit the layout? How do you get around the grayed out code?

-Paul in San Diego

 

travelin cat




msg:3963729
 4:32 pm on Aug 1, 2009 (gmt 0)

One of the reasons the code could be grayed out in "Design" mode is that the source code is referencing an outside source, such as a style sheet.

Look at the source and see if you can find a reference to another document such as a style sheet or javascript.

If you can get the other document and make sure the doc you are working on can reference it, you should be able to make changes to your project.

SanDiegoPaul




msg:3964228
 4:18 pm on Aug 2, 2009 (gmt 0)

Ok I looked and yes, the style sheet was removed too along with the original template. Yet the website still looks OK so the style sheet must have been for formatting text only, not for the layout.

The layout is intact. All I need to really do is go in and edit the BG colors and enter some keywords for the site.

But I cannot even rebuild a CSS sheet and attach it, unless I can unlock the grayed out code.

travelin cat




msg:3965040
 12:19 am on Aug 4, 2009 (gmt 0)

Are the style sheet and the document relative to each other as they are on the server? The doc must be able to know where the css is.

Also, are you saying that you can not alter the css?

Marcia




msg:3965045
 12:35 am on Aug 4, 2009 (gmt 0)

Actually, you can get into the DW code itself to either alter/modify a template or create a whole additional page template. You can even modify what appears in the drop down menus for sites.

I did that in DW2 with instructions from the DW2 Bible (got a used copy from Amazon) and then did it when I updated to DW4. I changed the default template that comes with the program, and created an additional one as well.

For the CSS, have you looked at the CSS using the Web Developer Toolbar in Firefox?

SanDiegoPaul




msg:3965101
 3:09 am on Aug 4, 2009 (gmt 0)

Are the style sheet and the document relative to each other as they are on the server? The doc must be able to know where the css is.
-----
I wish I knew how! I can't find it!
-----
Also, are you saying that you can not alter the css?
-----
Yes - the only thing I can edit is the center of the page; the editable region of the template.

SanDiegoPaul




msg:3965102
 3:10 am on Aug 4, 2009 (gmt 0)

For the CSS, have you looked at the CSS using the Web Developer Toolbar in Firefox?
-----
Marcia, I'm not familiar with that at all. Guess a google search is in order.

Marcia




msg:3965125
 4:10 am on Aug 4, 2009 (gmt 0)

Paul, here's Firefox:

[mozilla.com...]

Web Developer add-on:

https://addons.mozilla.org/en-US/firefox/addon/60

You can see both the CSS (imbedded and external) and the page source, and then reconstruct the template yourself from there. Using PHP includes for repeated page sections is better though, since you don't have to re-upload all the pages when updating a section (like navigation).

SanDiegoPaul




msg:3965515
 5:29 pm on Aug 4, 2009 (gmt 0)

Thanks for that. I'm not PHP literate though I can see that it will be something I'll need to pick up.

It won't be right away though; I'm in the middle of three website projects right now and that's not typically the best time for me to take on new web languages!

I appreciate your help.

Marcia




msg:3965554
 5:55 pm on Aug 4, 2009 (gmt 0)

Paul, you don't need to know PHP to use includes. It's simply one easy line of code that calls a simple text file when the pages load. And one entry in .htaccess if you're using them on .html pages. That's it: one line altogether of PHP.

Do a site search here and you'll find plenty of examples in the PHP forum.

Marcia




msg:3973831
 2:29 am on Aug 18, 2009 (gmt 0)

1) View the source code of an existing page in a browser.
2) Save that HTML file onto your hard drive.
3) Open that file in Dreamweaver.
4) Save that page as a new Dreamweaver template.

That way you can easily work with editable and non-editable regions.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Site Graphics and Multimedia Design
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved