Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

"Detach Template " is greyed out, but can't edit page

New Here ,
Mar 01, 2007 Mar 01, 2007
I'm getting this error when trying to "right justify" something in the body of a page:

"Making this change would require changing code that is locked by a template or a translator. The change will be discarded."

I understand this suggests that there is a template in use which has a non-editable area. However, this is not the case.

1. I have NO templates in the site.
2. If I try to detach (Modify \ Template \ Detach) the template, the Detach option is greyed out.

The problem started occuring when I accidentally saved a page as a template earlier. After doing so, I realized my mistake and deleted the template file.

I tried saving the affected file using notepad (as suggested in another post), but that does not fix the problem.

Could anyone tell me if / how it may be possible to recover from this?

Thanks!
TOPICS
Server side applications
874
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 01, 2007 Mar 01, 2007
Look in the code of your page and see if there are any references to a DW template.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 01, 2007 Mar 01, 2007
Look in the code of your page and see if there is *any* template markup at
all, not just references to DW templates. If there is, you will have to
tread carefully. Let us know, and I'll tell you what to do....

--
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
==================


"quitech" <webforumsuser@macromedia.com> wrote in message
news:es7gav$a3i$1@forums.macromedia.com...
> I'm getting this error when trying to "right justify" something in the
> body of
> a page:
>
> "Making this change would require changing code that is locked by a
> template
> or a translator. The change will be discarded."
>
> I understand this suggests that there is a template in use which has a
> non-editable area. However, this is not the case.
>
> 1. I have NO templates in the site.
> 2. If I try to detach (Modify \ Template \ Detach) the template, the
> Detach
> option is greyed out.
>
> The problem started occuring when I accidentally saved a page as a
> template
> earlier. After doing so, I realized my mistake and deleted the template
> file.
>
> I tried saving the affected file using notepad (as suggested in another
> post),
> but that does not fix the problem.
>
> Could anyone tell me if / how it may be possible to recover from this?
>
> Thanks!
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2007 Mar 01, 2007
I see no references to the deleted template in the code.

The problem occurs when I include a file at the beginning of the page, that would display an alternate page, if a condition is met. Below is the stripped down version of the code, which still produces the error. (BTW, if I manually type the <div> tags to do the justification, it doesn't complain at all. It's only when I click on the right justify button in "Properties")

-- main.asp file:
<!--#include file="include.asp" -->
<html>
<head></head>
<body>
try to apply right justify here
</body>
</html>

-- Include.asp file:
<% if condition then %>
<html>
<body>
</body>
</html>
<% response.end %>
<% end if %>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 01, 2007 Mar 01, 2007
I don't believe that you should have the body and html tags in an include file. Also try doing a test something like:

<% if condition %>
<!--#include file="include.asp" -->
<% end if %>

But try taking out the body and html tags from the include file
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2007 Mar 01, 2007
If I replace the <body></body> tags in the include file with <% response.write "<Body>"%><% response.write "</Body>"%>, it resolves the problem.

That said "resolves" is probably not the term to use, since the problem didn't occur before the "templete incident". But, it gets rid of the error, which is what I'm ultimately after.

Thanks for the info!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 01, 2007 Mar 01, 2007
LATEST
Why do you need body tags in the include file? If you already have them in
the parent page, you will create an invalid page.

--
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
==================


"quitech" <webforumsuser@macromedia.com> wrote in message
news:es7n4g$hod$1@forums.macromedia.com...
> If I replace the <body></body> tags in the include file with <%
> response.write
> "<Body>"%><% response.write "</Body>"%>, it resolves the problem.
>
> That said "resolves" is probably not the term to use, since the problem
> didn't
> occur before the "templete incident". But, it gets rid of the error,
> which is
> what I'm ultimately after.
>
> Thanks for the info!
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 01, 2007 Mar 01, 2007
Definitely should not if you want to work with DW.

--
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
==================


"envision3d" <webforumsuser@macromedia.com> wrote in message
news:es7htk$bu0$1@forums.macromedia.com...
>I don't believe that you should have the body and html tags in an include
>file.
> Also try doing a test something like:
>
> <% if condition %>
> ---include.asp file
> <% end if %>
>
> But try taking out the body and html tags from the include file
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines