HighDots Forums  

Adding flv to page based on template

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Adding flv to page based on template in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hitby
 
Posts: n/a

Default Adding flv to page based on template - 11-28-2007 , 06:51 AM






Hi all,
I'm currently trying to add an flv movie to a page in dreamweaver. The page is
based on a master template with a 'content' editable region. When I try to add
the flv using Dreamweavers Insert>Media>Flash Video I get an error: "Making
this change would require changing code that is locked by a template or a
translator. The change will be discarded."

I understand that and why it's happening but that doesn't help me any. I can
add the video if I detach the page from the template (although it didn't play)
but that's not a solution I want to use as I'll be needing ALL my pages to
update when I make changes to the master template.

Has anyone found a decent workaround for this before?
Many thanks for your help
Danny


Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Adding flv to page based on template - 11-28-2007 , 06:58 AM






When you insert the Flash video, *do not* enable the Flash detection option.

When that option is enabled, DW will want to write a function call into the
body tag. On a template child page, the body tag is NOT editable. This
will cause that error that you are getting.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Hitby" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi all,
I'm currently trying to add an flv movie to a page in dreamweaver. The
page is
based on a master template with a 'content' editable region. When I try to
add
the flv using Dreamweavers Insert>Media>Flash Video I get an error:
"Making
this change would require changing code that is locked by a template or a
translator. The change will be discarded."

I understand that and why it's happening but that doesn't help me any. I
can
add the video if I detach the page from the template (although it didn't
play)
but that's not a solution I want to use as I'll be needing ALL my pages to
update when I make changes to the master template.

Has anyone found a decent workaround for this before?
Many thanks for your help
Danny



Reply With Quote
  #3  
Old   
Hitby
 
Posts: n/a

Default Re: Adding flv to page based on template - 11-28-2007 , 07:04 AM



superb! thanks for your help. Out of interest, is it possible to write the flash detection code into the template so it's still available for pages that do actually have the flash video on?

Reply With Quote
  #4  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Adding flv to page based on template - 11-28-2007 , 07:43 AM



Yes. But you'd have to do it on a dummy page first, and then copy the call
(i.e., the content within double quotes after the 'onload=' event) placed in
the body tag into a script wrapper at the very bottom of the template page,
e.g.,

on the template page, change this -

</body>

to this -

<script type="text/javascript">...the stuff copied from the body
tag...</script>
</body>

for example -

<script type="text/javascript">MM_CheckFlashVersion('7,0,0,0','Conten t on
this page requires a newer version of Adobe Flash Player. Do you want to
download it now?');</script>
</body>

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Hitby" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
superb! thanks for your help. Out of interest, is it possible to write the
flash detection code into the template so it's still available for pages
that do actually have the flash video on?


Reply With Quote
  #5  
Old   
Hitby
 
Posts: n/a

Default Re: Adding flv to page based on template - 11-28-2007 , 09:19 AM



Thanks Murray, you've been a great help!

Reply With Quote
  #6  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Adding flv to page based on template - 11-28-2007 , 10:14 AM



You're welcome!

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Hitby" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks Murray, you've been a great help!


Reply With Quote
  #7  
Old   
josie1one
 
Posts: n/a

Default Re: Adding flv to page based on template - 11-28-2007 , 04:19 PM



Ahh, that explains a lot. Thanks Murray

--
Jo


"Murray *ACE*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
When you insert the Flash video, *do not* enable the Flash detection
option.

When that option is enabled, DW will want to write a function call into
the body tag. On a template child page, the body tag is NOT editable.
This will cause that error that you are getting.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Hitby" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:fijko3$1rh$1 (AT) forums (DOT) macromedia.com...
Hi all,
I'm currently trying to add an flv movie to a page in dreamweaver. The
page is
based on a master template with a 'content' editable region. When I try
to add
the flv using Dreamweavers Insert>Media>Flash Video I get an error:
"Making
this change would require changing code that is locked by a template or a
translator. The change will be discarded."

I understand that and why it's happening but that doesn't help me any. I
can
add the video if I detach the page from the template (although it didn't
play)
but that's not a solution I want to use as I'll be needing ALL my pages
to
update when I make changes to the master template.

Has anyone found a decent workaround for this before?
Many thanks for your help
Danny





Reply With Quote
  #8  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Adding flv to page based on template - 11-28-2007 , 05:23 PM



Yep - you're welcome, Jo.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"josie1one" <joleros (AT) spamoffyahoo (DOT) com> wrote

Quote:
Ahh, that explains a lot. Thanks Murray

--
Jo


"Murray *ACE*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:fijl5j$28f$1 (AT) forums (DOT) macromedia.com...
When you insert the Flash video, *do not* enable the Flash detection
option.

When that option is enabled, DW will want to write a function call into
the body tag. On a template child page, the body tag is NOT editable.
This will cause that error that you are getting.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Hitby" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:fijko3$1rh$1 (AT) forums (DOT) macromedia.com...
Hi all,
I'm currently trying to add an flv movie to a page in dreamweaver. The
page is
based on a master template with a 'content' editable region. When I try
to add
the flv using Dreamweavers Insert>Media>Flash Video I get an error:
"Making
this change would require changing code that is locked by a template or
a
translator. The change will be discarded."

I understand that and why it's happening but that doesn't help me any. I
can
add the video if I detach the page from the template (although it didn't
play)
but that's not a solution I want to use as I'll be needing ALL my pages
to
update when I make changes to the master template.

Has anyone found a decent workaround for this before?
Many thanks for your help
Danny






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.