Problem with Template

message from Chris on 23 Jul 2004
Hello,
I created a page from a template with editable regions. In this page, I
want to insert Fireworks html (a map with rollovers) in an editable
region but I get a message saying: "Making this change would require
changing code that is locked by a template or a translator. The change
will be discarded."

What should I do?

Thank you for your help.

Cheers

Chris
 
two can's replied to Chris on 23 Jul 2004
Hi yea,
try using a clean blank page with out template, create your roll over then
cut and paste the code, I find that always works.

regards

tintin

"Chris" <teddymaflu_nospam@fastmail.fm> wrote in message
news:cdr49c$920$1@forums.macromedia.com...
 
Linda Rathgeber *TMM* replied to Chris on 23 Jul 2004
Is the Head region of the template locked? If yes, then it is preventing
the Fireworks JavaScript from being written to the head of the document.

Add the rollovers to the document before converting it to a template?
 
Chris replied to Linda Rathgeber *TMM* on 23 Jul 2004
I detached the template from my document, added the FX HTML without
problem and then wanted to apply the same template again to my document.
But a window opened named Inconsistent Region Names saying that
"Document body" and "Document Head" were not resolved.

I tried to move the content of these 2 regions to existing editable
regions but unsucessfully...

Chris
 
Linda Rathgeber *TMM* replied to Chris on 23 Jul 2004
That's because you changed the template. Have many pages have you
already generated from it? Too many to start from scratch?
 
Chris replied to Linda Rathgeber *TMM* on 23 Jul 2004
Weird because I did not change the template. I just imported the FW
HTML in the detached document. I have generated about 40 pages with
this template and I must import FW HTML on 3 of them. What would you do
in my place?

Cheers

Chris
 
Linda Rathgeber *TMM* replied to Chris on 23 Jul 2004
I'd rebuild the template from scratch, adding the Fireworks HTML to it ,
before establishing the editable and non editable regions. I'd then
generate all new pages from the new template, quickly cutting and
pasting all the stuff from the editable regions of the old pages into
the new ones.

I'd also remember post a note to myself not to start generating pages
from a template until I was 100% sure I wouldn't be making any more
changes to locked regions.
 
Chris replied to Linda Rathgeber *TMM* on 23 Jul 2004
But I cannot do that because on the 3 pages concerned the FW HTML is not
the same...

As to your last comment, my problem does not come from the fact that I
want to change locked regions. The FW HTML I want to insert MUST go
into an editable region.
 
Alan replied to Chris on 23 Jul 2004
what the real problem probably is- is that when you go to import the FW
html, it wants to modify the <body> tag to put a preload call in for some
rollover images perhaps.
Or- it wants to put javascript functions in the head of the document, and
there isn't an editable region there.

if that's what it is-
quick fix- open the FW html file in dreamweaver.
select the body tag, and remove the onload behavior.
Then it should import into your templated file.

then if you want- you could select any image in an Editable area of that
document, and add a Preload Images behavior, fired onLoad, for the images
that were listed before.
 
Chris replied to Alan on 23 Jul 2004
Thank you Alan, that is exactly the problem I have. I wonder why the
body tag is locked... but since it is, DW cannot put the onLoad event in
the body tag with the preload call.

OK I understand that.

These images are world maps. As you said I chose a part of the image
making the map and attached a preload images behavior to it with an
onLoad event for the previously preloaded images. It is working well!
I think the ability to import FW HTML and DW template system should be
made more flexible and more usable in DW.

Thanks a lot for your help Alan.

Cheers

Chris
 
Alan replied to Chris on 23 Jul 2004
if familar with the code, you can cut and paste the preload behavior from
the body tag to an image tag so you don't have to go thru the steps to add
it again.
 
christoff915 replied to Chris on 23 Jul 2004
what she's trying to say is that although your FW rollover map needs to go into
an editable region, the JAVASCRIPT to make the rollover WORK has to go into a
locked region, namely the <head> region. that make more sense?

christoff
 

Archived message: Problem with Template (Macromedia Dreamweaver Web Design)