DW CS5 modify template head anomaly

Hi
I have an established site based on a single template with external css defined outside an editable region below the default editable region into which the page title can be inserted.
To override a CSS class on one page, I added the new style into the title editable region which is above the point where the external css gets included, but this does not result in the modified style being applied.
To overcome this, I added an additional editable region just above the </head> tag in the template expecting that it would propagate across the site when saved.
What actually happened was that the editable region relocated itself to just below the <head> section both in the template and the child pages - ie to after the </head> tag and before the <body> tag.  If I move the new editable region so it is no longer the final line before the </head> tag, then it works as expected.
This smells like a bug in CS5, but before I report it I thought I'd better check to see if this is a universal issue or just on my system.
Comments please.

Well, the code validated OK in DW with no errors and looked OK to me, but you're welcome to see if you can spot something in the head region where the problem occurred.  Edit Region 5 is what caused the problem - below it is in the position that works - nothing else is different.  I have removed my Google Analytics ID and added two CAPITALISED comments to show where the problem occurred.
The trigger for the unwanted move was saving the template and propagating the change to child page, which resulted in the move both in the template and the children.  If there was an error, then I would expect an error message of some sort, not unilateral unwanted editing.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Forum</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link href="../ACA2.css" rel="stylesheet" type="text/css" />
<script src="../js/ACA2.js" type="text/javascript"></script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- TemplateBeginEditable name="EditRegion5" --><!-- TemplateEndEditable -->
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxxx-14");
pageTracker._trackPageview();
} catch(err) {}
</script>
<!-- EDIT REGION CREATED HERE-->
</head>
<!--  THIS IS WHERE DW MOVED THE EDIT REGION WHEN INSERTED IMMEDIATELY BEFORE THE </HEAD> TAG -->
<body>
<div class="container"> <a name="pageTop"></a>

Similar Messages

  • Making DW CS4 Nested Template Head Region Update to Pages

    Using DW CS4...
    So I made a template, called main_template, and obviously it has an editable region named head. Now from main_template I made the nested template locations_template. Now I have code that I put in the head region of locations_template. This code does not propagate out to pages created from locations_template. I can't place an editable region within the head section in the nested template. How do I solve this problem?

    > 1st: "Error accessing file "...here appears the file
    name/path..." bad
    > file
    > path (error code 3) OKAY
    This usually means you have other files open that may belong
    to templates
    not in the current site. Make sure that you have other such
    files closed
    and you won't get this error.
    > 2nd: When I click the OKAY button I get: "There is an
    error at line 5,
    > Column
    > 35 (absolute position 54) of "...here appears the file
    name/path..." :
    > Nested
    > edible regions.
    This usually means you have an error in the template file -
    we would need to
    see its code to diagnose further.
    > When I check the code at line 5 or 54 I find nothing
    relevant to "Nested
    > edible regions".
    It could be referring to code errors like a missing
    </head>, or <body> tag,
    too.
    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
    ==================
    "Roy E" <[email protected]> wrote in message
    news:fppie5$ikg$[email protected]..
    >I am using one template in my website. Upon making
    changes it would
    > automatically update associate pages as it should. Then
    it quit and now
    > when I
    > try to do a manual update (Modify > Template . Update
    Pages) I get the
    > following error messages.
    >
    > 1st: "Error accessing file "...here appears the file
    name/path..." bad
    > file
    > path (error code 3) OKAY
    >
    > 2nd: When I click the OKAY button I get: "There is an
    error at line 5,
    > Column
    > 35 (absolute position 54) of "...here appears the file
    name/path..." :
    > Nested
    > edible regions.
    >
    > When I check the code at line 5 or 54 I find nothing
    relevant to "Nested
    > edible regions".
    >
    > Am I reading the error message incorrectly re:
    line/location of the error?
    > (I
    > do not want to have to recreate the template .)
    >
    > Help!
    >
    > Thomas
    >

  • Safari seems not sending If-Modified-Since header for main address

    Not sure I'm in the appropriate forum but let's try (if there is more appropriate one please advise).
    When Safari requests a resource (page, image...) to a web server it doesn't provide If-Modified-Since header for the main resource of the request. That means the web server can't answer "resource not modified, use your cache". This is not the behavior of other browsers and not good in terms of performance for the web server as well as for the user.
    However Safari sends this If-Modified-Since for the sub-elements of the resource (e.g. images, css in a page...). Which is good.
    Is there a way to influence Safari's behavior to provide a If-Modified-Since for the main resource requested to the server?
    acama,

    Found out the answer.  IIS 6 does in fact steal "If-Modified-Since" and "If-None-Match" headers, but only on custom 404 redirects.  That's actually what I'm doing here (that'll teach me not to put details in a question when I think they're irrelevant -- actually I just forgot).
    Here's two discussions on the issue (they're using ASP, but apparently it's the same for ColdFusion):
    http://www.eggheadcafe.com/conversation.aspx?messageid=32839787&threadid=32839787
    http://www.webmasterworld.com/microsoft_asp_net/3935439.htm

  • Template header field

    Hello all,
    I have been trying to get a field into the template header and after reading several other posts I found one that works.
    <?if@inlines:PARTY_NAME!=''?>For: <?PARTY_NAME?><?end if?>
    However, when I run it I don't get any of my detail fields. I do get my summed fields, which is confusing as well.
    If I take out the header field (above), I get my detail and summed fields.
    Thanks for the help.
    Kkerig

    Hi,
    Are you talking about system table or UDT?
    Thanks,
    Gordon

  • How to modify "From" header when certain condition met on "Return-Path" header

    We are activating TLS enforcement (STARTTLS) between our customer domain (@tls.customer.com) and their business partner (@tls.partner.com) on internet MTA (Cisco ESA C370 running AsyncOS 8.0.1-023)
    Customer is managing their internal mail infrastructure and have user mail domains based on country. So for example user X in Switzerland will have sender address: [email protected]
    My understanding is that their are using IQ Suite software to re-write sender address into [email protected] to be able to enforce TLS based on this domain.
    So far so good until the business partner at receiving end mentioned that they receive reply-to: [email protected] but from: [email protected]
    And this will interfere with the policy at their end that require both sender header fields to be the same.
    My customer mentioned that they have modified both "From" and "Sender" fields using IQ Suite but somehow on our IronPort we are seeing both appears on "From":
    From: <[email protected]>, <[email protected]>
    And on message tracking I can see DKIM matching on [email protected] rather than on [email protected]
    Message 218480027 (51299 bytes) from [email protected] ready.
    10 Feb 2015 09:13:27 (GMT +01:00)     Message 218480027 matched per-recipient policy DEFAULT for outbound mail policies.
    10 Feb 2015 09:13:27 (GMT +01:00)     Message 218480027 is not signed. No domain key profile matches [email protected]
    10 Feb 2015 09:13:27 (GMT +01:00)     Message 218480027 successfully signed. DKIM ch.customer.com-DKIM matched ch.customer.com.
    10 Feb 2015 09:13:27 (GMT +01:00)     Message 218480027 queued for delivery.
    So I suspect that customer internal mail still has [email protected] on "From" header and [email protected] on "Return-path" header.
    The question is how can I modify "From" header to match that on "Return-path" before sending it to partner.
    Appreciate the feeback.

    From my tests and knowledge.
    We cannot manipulate the From: header to use the variable of the return-path/envelope sender.
    However if you know specifically what to re-write then we can specially re-write the From: header to a specific address.
    This is done as;
    Content filter or message filter condition set
    Action would be:
    insert-header("From", "[email protected]")
    This is all i can think of for this type of request

  • If-modified-since header?

    Google tells me I need to be hosted on a server that supports this header (and it makes sense from a Google perspective). My host tells me that his servers do support that header. Yet when I test my pages on his server, the tool I am using tells me no support. Can anyone here help me with this?

    OK - for this to work, you need to insert a preamble on each PHP page -
    <?php
    $tsstring = gmdate('D, d M Y H:i:s ', $timestamp) . 'GMT';
    $etag = $language . $timestamp;
    $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? $_SERVER['HTTP_IF_MODIFIED_SINCE'] : false;
    $if_none_match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ? $_SERVER['HTTP_IF_NONE_MATCH'] : false;
    if ((($if_none_match && $if_none_match == $etag) || (!$if_none_match)) &&
    ($if_modified_since && $if_modified_since == $tsstring))
    header('HTTP/1.1 304 Not Modified');
    exit();
    else
    header("Last-Modified: $tsstring");
    ?>
    This is from the discussion here -
    http://stackoverflow.com/questions/1971721/how-to-use-http-cache-headers-with-php
    which I had seen once, but it was not clear to me that this was to be used on the pages involved, and thought it might be a way to check the if-modified-since header from a PHP page instead of a way to make the page send the header.

  • JCAPS 5.12 - modifying SOAP header for webservice Invocation

    I am trying to call an external web service from JCAPS 5.1.2 and need to set a token in the SOAP header. I am able to do this in other client implementations, however, the methods to modify the header don't seem to be exposed within JCAPS 5.1.2 or I do not know how to find the methods.
    Has anyone tried this before?

    Hi Experts,
    I'm trying to protect a web service deployed in jcaps 5.1.1, using SAML assertions against an Access Manager 7/7.1, the web services clients are both, web and standalone applications, I also have read netbeans tutorials, that expose how to implement identity webservices using AppServer 9.1 + AccessManager 7.1 using the SAML Holder of key and other security mechanisms, but this implementation requiere modifications to the server.policy file to add support to SOAP message security providers and HttpServlet message security providers, the addition of a library called amwebservicesprovider.jar to the classpath suffix (this library implements the jsr-196 java Authentication Service Provider Interface for Containers) and aditional configuration required in the AM side that is not detailed in the tutorials.
    Could someone guide me on how to protect the acces to a web services deployed in the jcaps logicalhost based on AM roles assigned to users?
    Any help is aprecciated
    Juan

  • Bridge CS5 "output templates" no longer loads; the output panel is blank. Where is the script?

    Bridge CS5 "output templates" no longer loads after my system back-up; the output panel is blank.
    The other Workspace features appear to be functional.
    What/Where is the  output script supposed to be? 

    If it worked before and you have changed nothing I would reset the preferences.  Close Bridge then hold down the CTRL key and start Bridge.  You should get a reset window with 3 optons.

  • Modify Delivery header Text

    I have a requirement where I need to modify a header text of delivery and update it . The header text however is copied from STO (we are creating delivery from STO) through a copy routine.
    I need to know the user exit / badi / extension where I can implement this logic. The point where STO header text is copied from Delivery and I can acess this data before delivery save and update it.
    I tried many user exits but the text was not available until that point.

    Hi Neha,
    I would recommend you to create the copy of the routine xxx to 9xx that does the part of copying the text from STO to delivery and then after configuring the same routine in SPRO instead of the standard one.
    In the copied routine i.e. 9xx you can add the code and see the change happen.
    Please validate the same at your end as well, please come back if any inputs from my end are required on this.
    BR/Thanks
    Pranav Agrawal

  • How to Modify the Header/Footer that's created when printing to PDF?

    Hi all,
    How do I modify the header/footer that is added when I use the Adobe PDF printer in another application, like MS Word? Currently it adds the entire path of the file as the header, which is really annoying.
    I'm not talking about the Header/Footer command in Acrobat's "Document" menu. In fact, that command doesn't even recognise the header that's generated by the Adobe PDF printer.
    I'm using Acrobat Pro 8.1.3, btw.
    Thanks :)

    Generally you should set the whole look of the page in your application and then print to the Adobe PDF printer as you have been doing. If you are using a browser, there are header and footer commands for the printer that are typically set by the browser - those can be modified there. The PDF should look just like the preview in the application, that is the point of a PDF.

  • Web Template Heading as variable per URL parameter?????

    Hi,
    is it possible to give the Heading/Title of a BW web template by giving over the (wished text) as parameter value in the the URL.
    As far as i could find out, with the standard web Objects available in the Web Application Designer it is not possible. (May be i am wrong but all i could see was the BW Objects with the value relating to the Query objects. Whereas a simple Template heading has noting to do with any QueryObject)
    Is there any other way of doing this? Maybe Java Script?
    Thanx for anyone replying.
    Umair

    Hi,
    the best approach to do this (would also work with bookmarks, ....). Set a caption of a web item where the caption is not displayed and add in your url the command sequence &cmd_1=item%3dYourItem%26caption%3dYourtitle
    Then use the SAPBWGetItemProp function to get the caption.
    http://help.sap.com/saphelp_nw04/helpdata/en/09/0b453c8bf3f30ee10000000a11405a/frameset.htm
    and place the caption in the title section.
    Heike

  • ??? Using JSPs to Send Not-Modified-Since Header ???

    Hi all,
    In looking at past posts, I'm afraid I know the horrible answer
    to this issue but I thought I'd ask just in case I missed
    anything.
    Let me start by saying I'm using Tomcat v4.0.4 beta 3.
    As you know, when a client (usually a web browser) has a cached
    version of a resource (usually a web page) it can send an
    "If-Modified-Since" header to the HTTP server. The server
    compares the time/date stamp specified in the header with that of
    the requested resource. If the resource has not been modified
    since the time specified in the "If-Modified-Since" header, the
    server sends back a 304 (Not-Modified) response, effectively
    telling the client (usually a web browser) that its cached
    version of the resource is still valid.
    When writing a servlet, it's easy to handle this sort of
    scenario. The javax.servlet.http.HttpServlet class has a
    "service()" method. This method first checks if the incoming HTTP
    method is a GET. If it is, the "service()" method proceeds to
    call the "getLastModified()" method of the servlet. As a
    developer, you can override "getLastModified()" to return a long
    value representing the last time the requested resource was
    changed. Depending on the value returned by "getLastModified()"
    (note that -1 is returned if you don't override the method) the
    "service()" method may simply return a 304, Not-Modified response
    rather than calling the servlet's "doGet()" method.
    Now, the $18.32 Question: How do you ensure "getLastModified()"
    is called in JSP?
    No, you cannot simply do this:
    <%!
       public long getLastModified() {
          return xxx;
    %>The problem is that the above method will never be called by the
    container.
    I traced through some of the Tomcat/Catalina/Jasper code and it
    seems to me that the response code is being set to 200/OK very
    early on in the processing.
    I also took a cursory look at the JSP spec and didn't find any
    indication of setting a "Not-Modified" response code...so, I am
    thinking this is something that is (strangely) missing in the JSP
    specification. I have a JSP page that needs to update itself once
    per day. Therefore, it would be very handy to have the
    "getLastModified()" functionality enjoyed by servlet writers.
    Can anyone confirm this?
    Thanks...

    I've not come across this before, but like you I cannot find any mention of how to handle modification dates in the JSP spec. I can think of a couple of possible ways round this:
    1. Try to delegate the functionality to a servlet. You'd need to pass the JSPs modification date and handle the return. Seems messy and I haven't tried it.
    2. Add code to the JSP to read the headers directly and set the appropriate status code. e.g. at start of JSP:
    <%@page  import="java.util.*" %>
    <%
    if (request.getMethod().equals("GET")) {
       GregorianCalendar lastModified = new GregorianCalendar(2002, 01, 01); // use constant for testing
       response.setDateHeader("Last-Modified", lastModified.getTimeInMillis());  //always set header
       long modifiedSince = -1;
       try {
          modifiedSince = request.getDateHeader("If-Modified-Since");
       } catch (IllegalArgumentException iae) {
            // System.out.println(iae);
       if (modifiedSince != -1 && modifiedSince > lastModified.getTimeInMillis()) {     
          response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
          return;
    %>This would probably best be implemented as a custom tag if needed in more than one page.

  • Modify template behaviour

    Does any one know of an extension that will modify
    Dreamweaver to allow me to add an editable region to a template
    that appears before the document headers are sent.
    The reason I need this is so I can create templates that have
    php script before the headers are sent that is not locked with the
    codeOutsideHTMLIsLocked="false".
    I actually want to have some php script that is in the
    template (so it is added and updated on all pages based on that
    template) so I have to lock the code outside the HTML. But I need
    to allow page specific code to be added outside the HTML as well.
    Has anyone got any ideas?
    Cheers,
    Mike

    Make sure you read the F1 Help about how to use templates
    before going any
    further.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "wmspringer" <[email protected]> wrote in
    message
    news:el31eo$amf$[email protected]..
    >I just created my first template, but I can't make
    anything editable
    >because the Modify->Template Properties option is
    greyed out. Any
    >suggestions?

  • Modifying HTTPService Header Values

    I am currently developing a system that uses a REST web service which determines the type to return based on the clients Accept header.  When working from FLEX I have been unable to modify this header value to appropriately indicate to the REST service that the format I am accepting is json and instead always get XML back.  What is the appropriate way in FLEX to set the Accept header on an HTTPService in Flex?

    Bummer, that looks like a "known issue":
    http://verveguy.blogspot.com/2008/07/truth-about-flex-httpservice.html
    https://bugs.adobe.com/jira/browse/SDK-11401
    Possible alternatives?
    http://github.com/gabriel/as3httpclient/tree/master
    Ben Edwards

  • Cisco CSS - modify http header

    hi, i need to modify http hearder with the client IP address. need to modify any of the folowing fields:
    1) FROM -> with client IP address
       CLIENT IP -> with Client IP address
    2) X-Forwarded-For -> with client IP address
    3) REMOTE_ADDR -> with client IP address
    please advise how do to modify http header with option 1 or 2 or 3.
    Thanks.

    Hi Gavin
    I think I misread your question.
    Question first.  Is your CSS configured with one arm and doing client source natting and the server needs to see the real ip address of the client? Is that the reason why you want to insert x-forward-for header with the clients real IP address?
    I did some search with CSS but  the CSS doesn't seem to support this feature.
    If you need to see the actual client ip address from the server, then you can do pbr from the router rather than client source natting.
    regards
    Andrew

Maybe you are looking for