-
1. Re: Legacy Template Nightmare
PurplePlumUK Jan 22, 2011 8:43 AM (in response to PurplePlumUK)LOL
Out into a text editor.. delete the offending template code.. back into Dreamwever.. refresh site... apply new template... JOY.
It's putting a template <!--endinstance--></html> seqence after the newest async Google Analytics code (in a Library item)... I did update that in the site's Library from the previous Google code and move it from the bottom of the page to it's recommended position just before the </head> tag in the main template? I've checked I didn't foul up and the code in the main template looks as it should be. Is there an issue.. I've not noticed this occurring on other sites... though I'm not sure many of my other sites use nested templates...
All comments welcome. ... be useful for future reference.
-
2. Re: Legacy Template Nightmare
PurplePlumUK Jan 22, 2011 3:09 PM (in response to PurplePlumUK)Not sure if people aren't understanding the issue or I'm the only lucky soul to have triggered this behaviour.
Nothing to do with nesting. Suspects: document type and the analytics script conflicting..
or my having placed the libraryitem between the InstanceParam and closing head tag. I'm testing the second one first as I feel it's the most likely.
------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstnceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" --><hread>
...
...
<!--- InstanceParam name="whatever" type="text" calue="something" -->
<!-- InstanceEnd --></html><!-- #BeginLibraryItem "/LIbrary/analytics.lbi" -->
<script... etc
...
</script><!-- #EndLibraryItem --><html xmlns="http://www.w3.org/1999/xhtml"><!-- InstnceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
<hread>
....
...
It's replacing the closing </head> tag with a repeat of the head section..
Message was edited by: BluePlumUK - spelling all over the place - am aware - tired - code is correct

