Forums

This topic is locked

Cannot add links due to locked template error

Posted 11 Jan 2006 13:40:08
1
has voted
11 Jan 2006 13:40:08 Greg Lampman posted:
I'm somewhat new to DWMX2004, but have my entire new website designed and all works but I cannot create links, I receive error that "Making this change would require changing code that is locked by a template or translator".

So here is what I did. I created a css.txt file to define all parameters for the templates, and editable areas. It is included in the Base.dwt template or pointed to I should say. My Base template is basically just a header and sidebar menu locked down, so it cannot be changed and a Main Content area open to add or edit information.
My nested template is of course, based on the Base template mentioned, but with editable areas for data or info input.
I created a list of counties in wisconsin, and then have subsequent pages created NEW from the nested template, and highlighted the county name and then in properties unders Links I browsed to the html file I wanted. Once I clicked ok, I received this error. I am not great at HTML coding, but for the life of me cannot find out what is causing this. I've looked at the base template, nested template and css text file, still stumped. I figure it has to be in the nested template somewhere, but where. Since I can add info to the nested based pages, the base template main content area should be fine.

any ideas, can send copies of the files for you to look at if you like to help out. Oh yes, I have the site created, so hyper links, etc. should work. Actually, on my first test I had two links that worked, but then they quit. Possible some change I made to the nested template caused this?

17 years in Cisco, Novell, MS IT until I was outsourced, I did some web stuff but want to keep my mind active, doing something which is why I love this frustration. I can't do much in the server arena anymore, so that's my background.

dmxrookie

Replies

Replied 17 Jan 2006 04:15:27
17 Jan 2006 04:15:27 Dave Thomas replied:
if you want my advice m8, scrap the use of templates.

i've never used one, well not the type DW creates, if i need a template, i'll create a page with all my main elements on it and just save it as blank.html then add whatever i want for a page and use 'save as...' and name it 'index.html' for example.

that way leaves you with a new page and you still have blank.html
the last thing you want when branching out is frustration, and DW templates will give you a lot of it in my opinion <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>



regards

Dave Thomas
<b>DMX Zone Forums Manager</b>
Replied 17 Jan 2006 20:09:40
17 Jan 2006 20:09:40 Jeremy Conn replied:
I agree - ditch the templates.

Until then, the only way you are going to be able to make all your changes without getting that error is handcoding through Notepad.

<b>Jeremy Conn</b>
www.conncreativemedia.com
DWMX2004 | ASP/VB | Access/SQL2000
Replied 01 Feb 2006 21:50:03
01 Feb 2006 21:50:03 Shell Richer replied:
Boy, I love the way everyone says "ditch" the templates. After much hair pulling and anguish I got nested templates to work well in DWMX 2004. They are exactly what I need for my site. They give me control yet allow flexibility for all the different depts. I have a basic table with rows as a "holder" and I am using php includes and some css. I had to lock down all the code so people couldn't change the design view or code view. From my two years on the forums (all over) I think I may be one of only a handful of people who got this to work. I have had them working for about a year and with a few small issues that I resolved all was well. UNTIL I installed Studio 8. Now everytime I want to make a change in an editable area I get that stupid message that the change wil be discarded. Then I have to go to code to make the change which will not work for all my people using the template. I expect Macromedia to fix this as it is obviously worse in this version. Maybe greed is at play here but I am not impressed. And since they advertise nested templates in all their documentation I expect it to work. When it does work, it is quite wonderful. I should say that even the 3rd level techs last year were not much help, I had to figure it out on my own. Shell

Edited by - Shell on 01 Feb 2006 21:51:59
Replied 02 Jan 2007 19:06:45
02 Jan 2007 19:06:45 Peter Dolan replied:
I've experienced the same type of problem not being able to edit the code of my documents based on templates using Dreamweaver 8(Mac). (I'm not using nested templates) I have tried the various recommended fixes without success. I figured that something specific must have changed, because I've used templates successfully in the past with dreamweaver MX 2004. The first thing I tried was to just 'detach' the document from the template and was able to edit the code. Ok, that was not really a solution, but at least I was able to make the code modifications I needed. So, back to trying other things.

I then noticed that I was able to make modifications in the 'design' view, but not in code view. I could copy elements from another page in design view and paste them into the template-based document, and not get the uneditable region error. I could also make modifications in the preferences panel without inducing the error. But, I still needed to be able to edit the code directly. One other thing I noticed was that when I did edit the code directly in code view, and then induced the error, after cancelling the error, when I tried to select some of the code in code view, there seems to be a bug that is highlighting the wrong portion of the text. So it seems that Dreamweaver might having a problem identifying what portion of the code is within the editable region, and what isn't. Finally I just started altering anything within Dreamweaver that might be having some effect on how things are dispayed in each view. The first thing I tried was to turn off the dispay of CSS styles: "View &gt; Style Renderiing &gt; Display Styles". I tried editing the code, and voilà, it worked! I turn of CSS styles, edit the code, turn styles back on, and no error.

My conclusion is that Dreamweaver has a bug somewhere relating to the displaying of CSS styles. It's a little bit of a pain to toggle back and forth. But it works for now. If anyone comes up with any other permanent fixes, I'd appreciate the info.

PeterD



<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm somewhat new to DWMX2004, but have my entire new website designed and all works but I cannot create links, I receive error that "Making this change would require changing code that is locked by a template or translator".

So here is what I did. I created a css.txt file to define all parameters for the templates, and editable areas. It is included in the Base.dwt template or pointed to I should say. My Base template is basically just a header and sidebar menu locked down, so it cannot be changed and a Main Content area open to add or edit information.
My nested template is of course, based on the Base template mentioned, but with editable areas for data or info input.
I created a list of counties in wisconsin, and then have subsequent pages created NEW from the nested template, and highlighted the county name and then in properties unders Links I browsed to the html file I wanted. Once I clicked ok, I received this error. I am not great at HTML coding, but for the life of me cannot find out what is causing this. I've looked at the base template, nested template and css text file, still stumped. I figure it has to be in the nested template somewhere, but where. Since I can add info to the nested based pages, the base template main content area should be fine.

any ideas, can send copies of the files for you to look at if you like to help out. Oh yes, I have the site created, so hyper links, etc. should work. Actually, on my first test I had two links that worked, but then they quit. Possible some change I made to the nested template caused this?

17 years in Cisco, Novell, MS IT until I was outsourced, I did some web stuff but want to keep my mind active, doing something which is why I love this frustration. I can't do much in the server arena anymore, so that's my background.

dmxrookie
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 04 May 2007 15:45:39
04 May 2007 15:45:39 Mandy Glynn replied:
I'm also having the same problem with the clash of CSS and DW8 templates (v 8.0.2). Is there a fix out there yet? I intend for this site to be deployed with Contribute available on it for my client. I really don't want to have to explain this work-around to a client who has limited web experience (they just won't understand). <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>

To add further information to this issue... Half of my editable regions are IN a table - these can be edited as expected. However, the remaining editable regions NOT in a table, cannot be edited (unless using the fix suggested above - turning off the style rendering... View &gt; Style Renderiing &gt; Display Styles).

Reply to this topic