Code is dimmed and not editable

Posted on 2005-04-07
Last Modified: 2010-04-25
I purchased a web package from 'SmartWebby' that uses DW templates...I am not accustomed (yet) to using templates in DW MX 2004, and would like to modify the code directly in just the few pages that this website requires, but it is dimmed out and DW will not let me change it...

How do I make the code editable?
Question by:cdr21
    LVL 14

    Accepted Solution


    >>How do I make the code editable?<<
    You edit the main page, not one by one.

    Templates are very easy to use once you understand how they work.
    There are templates and pages created out of the template.

     In DW templates you have EDITABLE REGIONS and NON-EDITABLE REGIONS.
    The whole idea behind this is that you will set the stuff that every page should have in common as NON-EDITABLE REGIONS (menu, header, footer, etc), and the stuff that will be different in every page as EDITABLE REGIONS (title, news, etc).

    The pages will not let you modify NON-EDITABLE CONTENT, for that you must change the template (and then all pages are updated automatically).

    If you are having trouble finding the template, try this:

    DW creates a TEMPLATES folder to store the templates. The files that you need to edit should be there.
    Also, the pages that are created out of templates have a piece of code that tells DW where to find the original. look at the top for something like this:
    <!-- InstanceBegin template="/Templates/mytemplate.dwt"
    That says that the template "mytemplate.dwt" can be found inside the "Templates" folder.

    Best regards,


    BTW: If you absolutely must modify the code in the pages instead of going through the template (completely not recommended), use another application; any other code editor won't recognize the templates and let you modify the code.

    Author Comment


    I suppose you're right about the templates being easier... I'm somewhat 'old school' and too busy 'working' to change...

    I did find a templates directory and, lo and behold, can edit these .dwt files just fine....

    I found out later that someone in my office has changed the originals files that came with this package...

    I only have a couple more questions...the .htm file file I was trying to edit, was apparently derived from a .dwt file, but it does not have any code like:
    <!-- InstanceBegin template="/Templates/mytemplate.dwt"

    Is there anyway to tell what template file was the source in the absence of an InstanceBegin statement?

    LVL 14

    Expert Comment

    >>I'm somewhat 'old school' and too busy 'working' to change...<<
    I understand. Happens to me all of the time :D

    >>Is there anyway to tell what template file was the source in the absence of an InstanceBegin statement?<<
    Is the page acting like it is connected to a template? to my knowledge, without the code DW shouldn't know it is a template. And I pressume that even in the event that you found the original, DW won't have a way to link the spawn back, hence not updating it. Give it a try to see.

    To see if the template is on the same site folder, try searching for a document that has some of the non-editable code of your page. If the template is there it should appear within the search results. Also, you can search for all .dwt files and check each one out (there shouldn't be many of them).

    Let me know how it goes.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
    This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now