Skip navigation
tommysauce
Currently Being Moderated

Template - editable region problem

Mar 16, 2007 3:06 AM

Hi folks,
I'm designing a site using CSS as opposed to tables and I've hit on a problem. For info the site is broken down into a 'header', 'left hand column' and a 'right hand column'. The 'left hand column' is a class and on the template I'm trying to make it an editable region, However when I've down editable regions in tables in the past they're always worked but this time out when attempting to make the left hand column editable the following message is displayed: You have placed the editable region "EditColumn" inside a block tag. Users of this template will not be able to create new blocks in this region. Move the region outside the block tag if you want users to be able to do this. Now I'm not sure what I'm doing wrong, however it is within this region I want to be able to edit data. I want to be able to apply a Bg image to this region and also add images or text and links - however I cant.

I have tried to edit the above on a separate DW8 file and it works fine (which it should do) - it's just in the template version I cant. Can anyone shed any light on this problem. I'm not a hardcore coder so any breakdown in this problem would be absolutley welcomed.

Many thanks
Tommisauce
 
Replies
  • Currently Being Moderated
    Mar 16, 2007 3:53 AM   in reply to tommysauce
    This alert is always returned when you have placed an editable region inside
    a block tag like this -

    <h1><!-- TemplateBeginEditable

    or this -

    <p><!-- TemplateBeginEditable

    and it means that you will not be able to insert any other block tag within
    that region, since <h1><p>, or <p><h1>, for example, is an illegal
    construction. The solution is to manually reverse the order, e.g., instead
    of this -

    <h1><!-- TemplateBeginEditable

    do this -

    <!-- TemplateBeginEditable name="whatever" --><h1>

    so that the tag is in the editable region rather than the editable region
    being in the tag.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com - Template Triage!
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================


    "tommysauce" <webforumsuser@macromedia.com> wrote in message
    news:etdq6u$ofl$1@forums.macromedia.com...
    > Hi folks,
    > I'm designing a site using CSS as opposed to tables and I've hit on a
    > problem.
    > For info the site is broken down into a 'header', 'left hand column' and a
    > 'right hand column'. The 'left hand column' is a class and on the template
    > I'm
    > trying to make it an editable region, However when I've down editable
    > regions
    > in tables in the past they're always worked but this time out when
    > attempting
    > to make the left hand column editable the following message is displayed:
    > You have placed the editable region "EditColumn" inside a block tag.
    > Users
    > of this template will not be able to create new blocks in this region.
    > Move the
    > region outside the block tag if you want users to be able to do this
    .
    > Now
    > I'm not sure what I'm doing wrong, however it is within this region I want
    > to
    > be able to edit data. I want to be able to apply a Bg image to this region
    > and
    > also add images or text and links - however I cant.
    >
    > I have tried to edit the above on a separate DW8 file and it works fine
    > (which
    > it should do) - it's just in the template version I cant. Can anyone shed
    > any
    > light on this problem. I'm not a hardcore coder so any breakdown in this
    > problem would be absolutley welcomed.
    >
    > Many thanks
    > Tommisauce
    >


     
    |
    Mark as:
  • Currently Being Moderated
    Mar 16, 2007 5:27 AM   in reply to tommysauce
    Yes, your code is invalid. You cannot have a <div> (a block tag) inside an
    <h1> tag (a special block tag). Try this -

    <!-- TemplateBeginEditable name="LeftColumn" --><div class="Left"
    id="Edit"><h1>...</h1></div><!-- TemplateEndEditable -->


    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com - Template Triage!
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================


    "tommysauce" <webforumsuser@macromedia.com> wrote in message
    news:etdvir$1dh$1@forums.macromedia.com...
    > Hi Murray - cheers for getting back to me so quickly - really, really
    > appreciated!I'm still having a problem with it though and pulling out the
    > little hair I have left.
    >
    > Here's my code:
    > <!-- TemplateBeginEditable name="LeftColumn" --><h1><div class="Left"
    > id="Edit"></div></h1><!-- TemplateEndEditable -->
    >
    > The previous 'error' message is no longer displayed when I save the .dwt
    > file.
    > However when I go to create a new doc based on the template and edit onto
    > the
    > region - this message is displayed: Making this change would require
    > changing
    > code that is locked by a template or a translator. The change will be
    > discarded.
    >
    > I've tried playing around with the code but nothing is working. Any ideas?
    > Cheers
    >
    >


     
    |
    Mark as:
  • Currently Being Moderated
    Mar 16, 2007 6:44 AM   in reply to tommysauce
    I note that you have used the space bar as a layout tool (not a great idea).

       <a href="#">ADVERTISEMENT</a>

    I also note that you continue to make the error of improperly nesting tags -

    <p align="left"><img src="../image/Front_Page/IUKwebLogo.gif"
    alt="Intuition
    UK: Business Consultants" width="245" height="60" class="Logo" /><div
    class="MenuHeader">

    Note that this is a <div> inside a <p> and that's not a valid structure.

    You also have things like this -

    <p><p class="Copyright">Intuition UK 2007&copy;</p>

    an improperly terminated <p> tag.

    Until you get a better grasp of HTML, you should probably stay out of the
    code.

    The bottom line is this - DW will only do what you tell it to do. If you
    tell it to do something that will result in invalid markup, DW will not
    always prevent you from completing that task. If there is invalid markup on
    a template page, you will always trigger these alerts that you are getting.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com - Template Triage!
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================


    "tommysauce" <webforumsuser@macromedia.com> wrote in message
    news:ete556$840$1@forums.macromedia.com...
    > Hi Murray - thanks again for this - however (you've guessed it) it's not
    > working. Now I really have no idea why this isn't working. I thought
    > making a
    > Template with this editable region would of been the easiest thing to do,
    > however - not so.
    >
    > I've included the bodycopy for you in this reply to give you my coding -
    > to
    > see if you can see anything which is untoward. Many thanks in advance.
    >
    > </head>
    >
    > <body>
    > <!-- TemplateBeginEditable name="LeftColumn" --><div class="Left"
    > id="Edit"><h1></h1></div><!-- TemplateEndEditable -->
    >
    > <p align="left"><img src="../image/Front_Page/IUKwebLogo.gif"
    > alt="Intuition
    > UK: Business Consultants" width="245" height="60" class="Logo" /><div
    > class="MenuHeader"><a href="#">HOME</a>     <a
    > href="#">ABOUT
    > US</a>     <a href="#">SERVICES</a>     <a
    > href="#">NEWS</a>    <a href="#">ADVERTISEMENT</a>
    >     <a href="#">PAYMENTS</a>     <a
    > href="#">CONTACT</a></div>
    >
    > <span class="Right"><img src="../image/Front_Page/Latest.gif"
    > alt="Intuition
    > UK: Business Consultants - graphic for latest news" width="320"
    > height="30"
    > hspace="5" vspace="5" /><br />
    >  > <a href="#">But perspiciatis unde omnis iste natus error sit
    >     voluptatem accusantium But perspiciatis
    > unde</a><br />
    >  > <a href="#">Tomnis iste natus error sit</a> <br />
    >  > <a href="#">voluptatem accusantium doloremque  </a><br />
    >  > <a href="#">laudantiumdoloremque laudantium</a><br />
    > <img src="../image/Front_Page/RightPI/RightPanelImageA.jpg" alt="Intuition
    > UK:
    > Business Consultants - graphic of a computer close up" width="320"
    > height="125"
    > hspace="5" vspace="5" /><img src="../image/Front_Page/contact.gif"
    > alt="Intuition UK: Business Consultants - graphic for Contact us:
    > xxxx@xxxxxxx.info" width="320" height="30" hspace="5" /><br />
    > <br />
    >   Please contact one of Intuitons experienced
    >   consultants who will only be too happy to help on <br />
    > <br />
    >   <span class="style4"><span class="Telephone">020 xxxx
    > xxxx</span><br />
    > <br />
    >   Or send an e-mail querie to:<br />
    >   <a href="mailtoxxx@xxxxxxx.info">xxxx@xxxxxxx.info </a><br />
    > </span></span> <br />
    > </p>
    > <p><p class="Copyright">Intuition UK 2007&copy;</p>
    > </body>
    > </html>
    >


     
    |
    Mark as:
  • Currently Being Moderated
    Mar 19, 2007 4:50 AM   in reply to tommysauce
    Good luck!

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com - Template Triage!
    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
    ==================


    "tommysauce" <webforumsuser@macromedia.com> wrote in message
    news:etlsol$qs5$1@forums.macromedia.com...
    > Hi Murray,
    > Just thought I'd get back to you on this - I somehow managed to get the
    > template working. I was doing exactly what you advised and for whatever
    > reason
    > the code wasn't working - but then hey bingo - it behaved!
    > Many thanks again - also your other comments have been taken on board.
    >


     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points