unlock head tags on child page based on template

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #21

    Default Re: unlock head tags on child page based on template

    Here is what I have done so far:
    I highlighted the body tag, then modify > templates > make attribute editable.

    But when the box opens it doesn't say body, it says id. I went ahead and did
    it anyway.

    Updated.

    Created a blank page with a video so that I could have the code that goes in
    the head tag and the script that goes in the body tag.

    Went to the child page, modify > template properties, but I can't put anything
    in the box that pops up. And I can't put anything on the page itself.

    Here is my template:
    [url]http://www.pjkwebdesigns.com/Templates/templatepjk_dwt[/url]

    Here is my index page
    [url]http://www.pjkwebdesigns.com/index.htm[/url]

    Here is my child page:
    [url]http://www.pjkwebdesigns.com/pages/videos.html[/url]

    This is the test page (you won't have the video because it's not online, but
    you can see the script and code and where it is supposed to go)
    [url]http://www.pjkwebdesigns.com/pages/test.htm[/url]

    This just isn't working, so obviously I'm doing something incorrectly.

    Please look at my pages and tell me what you see and what you think I've done
    wrong and what I need to do to change it and make it right.

    I gotta get this down before I have to put those videos on their pages. If
    I'm asked, I'm gonna panic! because their sites are template-based!

    Thanks

    Pea-Jay Guest

  2. Similar Questions and Discussions

    1. need help with create page based on template
      I created a template on my class computer and i created few pages based on it. Today i moved all the file&folders to my private computer, and when...
    2. How to treat template tags as comment tags?
      Hi all, I am using DW MX to edit templates for a FreeMarker application. The template tag fromat is like so: <ul> <#list birds as bird>...
    3. Problems inserting layer on to template based page
      I'm trying to add a layer onto a page that is based on a template. When I tried to insert the layer, I got the following error message from...
    4. Using Head Tags
      may have something to do with the 5 refresh tags there, the first of which is <meta http-equiv="Refresh"...
    5. Using ParseChildren attribute to load child tags - VS removes tags
      I am building a poll control, nested in the tag I have child tags to setup the poll options. Everything works fine, but when I edit a property in...
  3. #22

    Default Re: unlock head tags on child page based on template

    You're getting closer. When you use the Editable Attribute feature, you are
    NOT making the tag editable, you are making an attribute of the tag
    editable.

    In your case, the attribute you would want to make editable is the onLoad
    attribute. That's because it is where the call is made to check the Flash
    version -

    <body onload="MM_CheckFlashVersion('7,0,0,0','Content on this page requires
    a newer version of Macromedia Flash Player. Do you want to download it
    now?');">

    Here's how I think you should proceed:

    1. Manually add an editable region at the bottom of your template page,
    immediately above the </body> tag, e.g.,

    <!-- TemplateBeginEditable name="FVScript" --><!-- TemplateEndEditable -->
    </body>

    Save the template, and let that new editable region propagate to the child
    pages.

    2. Add the FV to a dummy (non-templated page).
    3. Manually copy the markup from this non-templated page to the child page
    as follows -

    Place this -

    <script type="text/javascript">
    function MM_CheckFlashVersion(reqVerStr,msg){
    with(navigator){
    var isIE = (appVersion.indexOf("MSIE") != -1 &&
    userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){
    var flashVer = -1;
    if (plugins && plugins.length > 0){
    var desc = plugins["Shockwave Flash"] ? plugins["Shockwave
    Flash"].description : "";
    desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash
    2.0"].description : desc;
    if (desc == "") flashVer = -1;
    else{
    var descArr = desc.split(" ");
    var tempArrMajor = descArr[2].split(".");
    var verMajor = tempArrMajor[0];
    var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") :
    descArr[4].split("r");
    var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
    flashVer = parseFloat(verMajor + "." + verMinor);
    }
    }
    // WebTV has Flash Player 4 or lower -- too low for video
    else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer =
    4.0;

    var verArr = reqVerStr.split(",");
    var reqVer = parseFloat(verArr[0] + "." + verArr[2]);

    if (flashVer < reqVer){
    if (confirm(msg))
    window.location =
    "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
    }
    }
    }
    }
    </script>

    into the editable region in the head of the page.

    Then place this -

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
    width="262" height="231" id="FLVPlayer">
    <param name="movie" value="FLVPlayer_Progressive.swf" />
    <param name="salign" value="lt" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="FlashVars"
    value="&MM_ComponentVersion=1&skinName=Halo_Skin_3 &streamName=Farewell_valse69op1_ChopinSm_Prog&auto Play=false&autoRewind=false"
    />
    <embed src="FLVPlayer_Progressive.swf"
    flashvars="&MM_ComponentVersion=1&skinName=Halo_Sk in_3&streamName=Farewell_valse69op1_ChopinSm_Prog& autoPlay=false&autoRewind=false"
    quality="high" scale="noscale" width="262" height="231" name="FLVPlayer"
    salign="LT" type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>

    into the body of the page wherever you want it.

    Then place this -

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

    into the editable region at the bottom of the page (the one named
    "FVScript").

    You will be good to go.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "Pea-Jay" <pjkinann@aol.com> wrote in message
    news:dl1ek2$rln$1@forums.macromedia.com...
    > Here is what I have done so far:
    > I highlighted the body tag, then modify > templates > make attribute
    > editable.
    >
    > But when the box opens it doesn't say body, it says id. I went ahead and
    > did
    > it anyway.
    >
    > Updated.
    >
    > Created a blank page with a video so that I could have the code that goes
    > in
    > the head tag and the script that goes in the body tag.
    >
    > Went to the child page, modify > template properties, but I can't put
    > anything
    > in the box that pops up. And I can't put anything on the page itself.
    >
    > Here is my template:
    > [url]http://www.pjkwebdesigns.com/Templates/templatepjk_dwt[/url]
    >
    > Here is my index page
    > [url]http://www.pjkwebdesigns.com/index.htm[/url]
    >
    > Here is my child page:
    > [url]http://www.pjkwebdesigns.com/pages/videos.html[/url]
    >
    > This is the test page (you won't have the video because it's not online,
    > but
    > you can see the script and code and where it is supposed to go)
    > [url]http://www.pjkwebdesigns.com/pages/test.htm[/url]
    >
    > This just isn't working, so obviously I'm doing something incorrectly.
    >
    > Please look at my pages and tell me what you see and what you think I've
    > done
    > wrong and what I need to do to change it and make it right.
    >
    > I gotta get this down before I have to put those videos on their pages.
    > If
    > I'm asked, I'm gonna panic! because their sites are template-based!
    >
    > Thanks
    >

    Murray *TMM* Guest

  4. #23

    Default Re: unlock head tags on child page based on template

    All right. I'll give that a try. But I think when I highlighted BODY it
    didn't highlight the onload area, but everything below the <body onload......>,
    so should I delete that editable area and start over and highlight the code
    within the code? rather than in the bar above the PI? (whatever that thing is
    called). That is where I highlighted it the first time. Highlight body and it
    highlights starting with the <div id="@@(id)@@">.................
    < body onLoad="P7_initPM(0,14,1,-20,10)">
    < div id="@@(id)@@">
    < div id="mainbox">

    But maybe I don't need to start over. Doesn't that @@(id)@@ mean I've already
    made the body editable?

    Pea-Jay Guest

  5. #24

    Default Re: unlock head tags on child page based on template

    If you select the body tag on the tag selector, you can then make any
    attribute of the body tag editable. If the attribute is *already* present
    in the body tag, you will see it in the dialog panel. If it is not, you
    just manually enter it.

    <div id="@@(id)@@">.................
    < body onLoad="P7_initPM(0,14,1,-20,10)">

    You should not see markup like this in your page - a <div> cannot appear
    above the <body> tag.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "Pea-Jay" <pjkinann@aol.com> wrote in message
    news:dl3ns9$an6$1@forums.macromedia.com...
    > All right. I'll give that a try. But I think when I highlighted BODY it
    > didn't highlight the onload area, but everything below the <body
    > onload......>,
    > so should I delete that editable area and start over and highlight the
    > code
    > within the code? rather than in the bar above the PI? (whatever that thing
    > is
    > called). That is where I highlighted it the first time. Highlight body
    > and it
    > highlights starting with the <div id="@@(id)@@">.................
    > < body onLoad="P7_initPM(0,14,1,-20,10)">
    > < div id="@@(id)@@">
    > < div id="mainbox">
    >
    > But maybe I don't need to start over. Doesn't that @@(id)@@ mean I've
    > already
    > made the body editable?
    >

    Murray *TMM* Guest

  6. #25

    Default Re: unlock head tags on child page based on template

    Okay, I did select the body tag on the tag selector , but it only highlighted
    everything below the < body onload code....> and the only option the dialog
    box gave me was to select ONLOAD. So I did. And this: <div
    id="@@(id)@@">................. is what now shows on the child page, meaning
    the body is editable, yes? no? Then I tried to modify the child page, but the
    video still could not be inserted.


    If you select the body tag on the tag selector, you can then make any
    attribute of the body tag editable. If the attribute is *already* present
    in the body tag, you will see it in the dialog panel. If it is not, you
    just manually enter it.

    <div id="@@(id)@@">.................
    < body onLoad="P7_initPM(0,14,1,-20,10)">

    You should not see markup like this in your page - a <div> cannot appear
    above the <body> tag.

    Pea-Jay Guest

  7. #26

    Default Re: unlock head tags on child page based on template

    Show me your template page, please.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "Pea-Jay" <pjkinann@aol.com> wrote in message
    news:dl65dv$f5u$1@forums.macromedia.com...
    > Okay, I did select the body tag on the tag selector , but it only
    > highlighted
    > everything below the < body onload code....> and the only option the
    > dialog
    > box gave me was to select ONLOAD. So I did. And this: <div
    > id="@@(id)@@">................. is what now shows on the child page,
    > meaning
    > the body is editable, yes? no? Then I tried to modify the child page, but
    > the
    > video still could not be inserted.
    >
    >
    > If you select the body tag on the tag selector, you can then make any
    > attribute of the body tag editable. If the attribute is *already* present
    > in the body tag, you will see it in the dialog panel. If it is not, you
    > just manually enter it.
    >
    > <div id="@@(id)@@">.................
    > < body onLoad="P7_initPM(0,14,1,-20,10)">
    >
    > You should not see markup like this in your page - a <div> cannot appear
    > above the <body> tag.
    >

    Murray *TMM* Guest

  8. #27

    Default Re: unlock head tags on child page based on template

    [url]http://www.pjkwebdesigns.com/pages/videos.html[/url]
    Pea-Jay Guest

  9. #28

    Default Re: unlock head tags on child page based on template

    OK - two questions:

    1. What do you want to add to the body tag?
    2. Do you care about the parameter named "id" that you have already
    inserted in this page?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "Pea-Jay" <pjkinann@aol.com> wrote in message
    news:dl81ef$qnn$1@forums.macromedia.com...
    > [url]http://www.pjkwebdesigns.com/pages/videos.html[/url]

    Murray *TMM* Guest

  10. #29

    Default Re: unlock head tags on child page based on template

    On this blank page is a video (and it doesn't have to be THIS video - just ANY
    video), and the code that is on this page needs to go on a template-based page.
    [url]http://www.pjkwebdesigns.com/test.htm[/url]

    The > < div id="@@(id)@@">................. that was created was because from
    the template I made the body editable, so no, I don't care about that. Just
    that if the body is not editable, which it is not on a child page, then I can't
    add a video because it has various scripts and such that need to go in the head
    tags and in the body tags.

    So the process of making the template head and body editable was supposed to
    work so that I could insert a video on a template-based page, but it didn't, at
    least not for me.

    So the above test page has the information that Flash Video creates when I
    insert a video on a web page.

    Pea-Jay Guest

  11. #30

    Default Re: unlock head tags on child page based on template

    You may not see the actual video on this page as it may come up blank. I
    didn't put the video online; however, you can STILL view the source code. So
    if it comes up white, the source code is still on the page.

    Pea-Jay Guest

  12. #31

    Default Re: unlock head tags on child page based on template

    OK - I have made you a new template -

    [url]http://www.murraytestsite.com/Templates/templatepjk.dwt[/url] (you will need to
    relink everything if you use this page)

    and the page based on it is here -

    [url]http://www.murraytestsite.com/pjkdesign.html[/url]

    Look at the code on the template page and then on the child page to see what
    I did.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "Pea-Jay" <pjkinann@aol.com> wrote in message
    news:dl86ho$43c$1@forums.macromedia.com...
    > You may not see the actual video on this page as it may come up blank. I
    > didn't put the video online; however, you can STILL view the source code.
    > So
    > if it comes up white, the source code is still on the page.
    >

    Murray *TMM* Guest

  13. #32

    Default Re: unlock head tags on child page based on template

    Hmmm............when I open those, I can't save them. Doesn't give me an option to save. I guess I'll just see if I can figure out the code. I can view the source code.

    Thank you.
    Pea-Jay Guest

  14. #33

    Default Re: unlock head tags on child page based on template

    See, this is what I get when I try to save it:
    [url]http://www.pjkwebdesigns.com/printscreen.jpg[/url]
    Pea-Jay Guest

  15. #34

    Default Re: unlock head tags on child page based on template

    View source. Select all. Copy. Open DW. Open a new page. In code view
    select all, and paste. Save as whatever you want.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "Pea-Jay" <pjkinann@aol.com> wrote in message
    news:dl8ud1$3lo$1@forums.macromedia.com...
    > See, this is what I get when I try to save it:
    > [url]http://www.pjkwebdesigns.com/printscreen.jpg[/url]

    Murray *TMM* Guest

  16. #35

    Default Re: unlock head tags on child page based on template

    Okay, thank you. Also, you know, I think the reason I never thought about this
    template-based problem is because I realized I have an old template-based site
    that I'm redoing, but still need to update it while I'm working on the new
    site, and I had put a video on this page with no problem, and it's
    template-based. So until I tried putting one on my own page (because I need to
    do this for 2 more clients) I never even realized there was a problem.

    The one on this page just was inserted without any problem at all.
    [url]http://www.holisticanimal.com/pagesmain/93Q.htm[/url]

    Pea-Jay Guest

  17. #36

    Default Re: unlock head tags on child page based on template

    I had exactly the same problem recently. The only fix i could really find online was to detach the template from the pages i wanted to use the swf in, so i could remove the editable area and insert the swf directly. Which of course meant that i had to go in manually to those pages to make changes because any changes to the template of course wouldn't update. It's not ideal, but it worked.
    Sis Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139