Skip to main content
Participant
April 23, 2021
Question

Cut, Copy & paste

  • April 23, 2021
  • 4 replies
  • 251 views

I'm a beginner 😩

I'm trying to cut and paste, but it will not allow me. I'm trying to delete/paste in the lines that look like the image below, but it won't allow me. I can not remove any of the sections that look like this from my page.

I can cut/paste yhe informtion below. Does t have something to do with the color?

    This topic has been closed for replies.

    4 replies

    Jon Fritz
    Community Expert
    Community Expert
    April 23, 2021

    This is how Templates in DW were designed to work.

    In the .DWT file inside your site's Templates folder, you set all of the regions you want to be editable in future pages made from the Template. That will essentially lock out any attempts to modify the areas outside of the editable regions (from within DW only). Basically, it allows you to lock the design parts of the page from being edited, while leaving areas open for new content.

    Visually, those locked out areas are gray in Code View.

    The only place they can be edited, while working in DW, is in the .DWT files in your Templates folder. Any modification to the non-editable regions there will then automatically be pushed to every Child page made from the .DWT locally. After the pages update, you will need to re-upload every changed page to the server.

    If you're trying to create a new Child page for your site (which might explain why you're trying to copy and paste the instance comments from another Child) you should...

    1. In DW CC Go to File > New...
    2. Choose "Site Templates" from the leftmost column of the New Document dialogue
    3. Click the site name you are working on in the second column to highlight it
    4. Click the .dwt template name you want to make a page from in the third column
    5. Click Create

    You will be given a page that allows you to edit only those regions set as Editable Regions in the .DWT file.

    If you are trying to remove .DWT Templates from your site...

    1. Open a Child page
    2. Go to Tools > Templates > Detach From Template
    3. Rinse and repeat for all pages

    B i r n o u
    Legend
    April 23, 2021

    youps, in fact I thought the OP wanted to modify the content of a META tag?

    B i r n o u
    Legend
    April 23, 2021

    Well, that's a little trickier. It makes sense that you would want to modify the META tags on a document-by-document basis. When you use the Dreamweaver templates, you need to make the attribute editable, so in the case of the META NAME DESCRIPTION tag, you need to make the CONTENT attribute to be editable (from a child page).

     

    There are two ways to do this, by the code, or directly from the user interface (in a WYSIWYG method)


    1 From the user interface, select the META tag in question (from the code view it's more simple, place the cursor and clcik over the META label tag) , and from the menu TOOLS> TEMPLATES > choose Make attribute editable. Choose, CONTENT attribut and check the allow editable box. Give an explicit name to the label field.... That's it.

    (just avoid special char, use only and just lower case letter, i.e contentdescription)

     

    2 from the code, modify the CONTENT attribute and then add a new instance variable. As shown on this snippet.

    <!doctype html>
    <html>
      <head>
        <meta charset="utf-8">
        <meta name="description" content="@@(contentdescription)@@">
        <!-- TemplateBeginEditable name="doctitle" -->
        <title>Document sans nom</title>
        <!-- TemplateEndEditable -->
        <!-- TemplateBeginEditable name="head" -->
        <!-- TemplateEndEditable -->
        <!-- TemplateParam name="contentdescription" type="text" value="" -->
      </head>
      <body>
        <!-- TemplateBeginEditable name="EditRegion1" -->EditRegion1<!-- TemplateEndEditable -->    
      </body>
    </html>

    now to modify the META DESRIPTION CONTENT attribut from a child page, open, or create, a child page, from this templates, and then, again ... two ways...

     

    paradoxically, the method by the code is more complicated. you have to modify the value of the attribute VALUE of your instance TemplateParam name="contentdescription", then reapply the template to the page, from the menu TOOLS > TEMPLATES > APPLY TEMPLATE... in order to update the value of the tag META...

     

    Otherwise, from the user interface, it is very simple, from the menu EDIT > TEMPLATES PROPERTIES select the property to modify, namely, contentdescription, and change its value.
    That's all.

     

     

     

    Nancy OShea
    Community Expert
    Community Expert
    April 23, 2021

    Template content is grayed and not editable from child pages for a reason.  You need to open the main Template.dwt file to make changes to your meta tags.

     

    Nancy O'Shea— Product User & Community Expert
    BenPleysier
    Community Expert
    Community Expert
    April 23, 2021

    You have shown a child page created from a template. The child page contains editable regions s wel as non-editable regions. The non-editable regions can be edited in the template itself.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!