close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

CS4 code locked by template or translator

Thread began 9/14/2009 4:55 pm by jeff245800 | Last modified 9/16/2009 5:47 pm by Jimmy Wu | 2394 views | 6 replies |

jeff245800

CS4 code locked by template or translator

I'm following the tutorial and when I try to add an 'Add to Cart' button I get the following error:

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

Please advise.

Jeff

Sign in to reply to this post

Jimmy Wu

Make sure the location you are adding the add to cart button is within an editable region on the page.

Are you able to add an add to cart button on a blank page?

Sign in to reply to this post

jeff245800

Work-around

Very strange behavior. If I add an ATC button with no properties set in the ATC dialog it will allow the button to be added. Then I delete the ATC code, refresh, select 'Yes'.

At this point I am able to add an ATC button with all my required properties set.

But everytime I tried to add the ATC button, while setting Bindings it rejected the add until I added a non-Binding button, delete, and refresh. Weird.

Jeff

Sign in to reply to this post

jeff245800

Update to Workaround

Actually, I was able to narrow down the issue to this:

When using split screen in DW ( code top, preview bottom ), if you place the cursor in the 'Preview' panel and try to add the ATC, it fails with the error message originally posted.

However, if you place the cursor in the 'Code' view portion, the ATC will be added with no problems.

Jeff

Sign in to reply to this post

Jimmy Wu

That is quite interesting. What operating system are you running and which version of Dreamweaver? I'd like to try to reproduce this and log it as a bug if I can, so hopefully it can be fixed in a future release.

Sign in to reply to this post

jeff245800

XP Pro
DW CS4
eCart 4.5

Sign in to reply to this post

Jimmy Wu

Thanks, I'll try to reproduce that on our end.

One other thing you can do is to temporarily detach the page from the template and then apply the Add To Cart button and then attach the page to the template again. You can do this by:
1) Opening up the page in an external text editor and copying the line of code that looks similar to this to another text file:
<!-- InstanceBegin template="/Templates/Main.dwt.php" codeOutsideHTMLIsLocked="false" -->

It should be right after the open <html> tag.

2) Delete the code from your page, save and close the document.
3) Open the page in Dreamweaver and add the Add to Cart button.
4) Save the page and close it in Dreamweaver.
5) Open the page in an external text editor and then copy the code back in to the same location.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...