|
User Details |
message
|
|
post date:
2010-01-24 13:45:26
|
Hi -
Whenever I insert a panel into a page that was created by template in dreamweaver, I get this error:
TypeError: headRegion has no properties
If I insert a panel into a page that is not attached to the template it works fine.
In my template, I've made sure that their is an editable region in the <head> area of the html.
The panel gets placed where it should, but nothing is written to head region, so the panel does not appear properly.
Any ideas as to what I can do to fix this?
The head region of my template looks like this:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- TemplateInfo codeOutsideHTMLIsLocked="false" -->
<!-- TemplateBeginEditable name="HeadRegion" -->
<title>Page Title</title>
<meta name="keywords" content="keywords here" />
<meta name="description" content="" />
<!-- TemplateEndEditable -->
<link href="/style2010-main.css" rel="stylesheet" type="text/css" />
</head>
In the page that I'm creating from this template, the head region looks the same after the panel is inserted. The javascript and links to the stylesheets are never written.
Can you tell what is preventing that data from being written as it should?
Thanks for any help.
Debbie McCormick
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2010-01-25 06:22:24
|
Hi Debbie,
We thought of this use case and the extension should work in templates. I actually made a test before posting and it worked. Could you please send me a copy of your dwt file by email at support at extendstudio.com ?
Regards,
Andrei Rinciog
|
|
|
post date:
2010-01-25 11:03:29
|
Hi - thanks for the reply. I figured out the problem. I changed my <head> code to look like this and it now works:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateInfo codeOutsideHTMLIsLocked="false" -->
<!-- TemplateBeginEditable name="head" -->
<title>Page Title</title>
<meta name="keywords" content="keywords here" />
<meta name="description" content="" />
<!-- TemplateEndEditable -->
<script type="text/javascript" src="/nav/stmenu.js"></script>
<link href="/style2010-main.css" rel="stylesheet" type="text/css" />
</head>
The only real difference was changing the name of the editable region from "HeadRegion" to "head". I have no idea why that made the difference, but it did.
Thanks again. And, by the way - this extension is saving me TONS of time. I love it!
Debbie
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2010-01-26 04:11:31
|
Hello again Debbie,
I think that our extension is only checking for editable regions named simply "head" and that's why it didn't recognize it when it was 'headRegion". Well, one more for the knowledge base.
Thank you for pointing this out. If you have any more questions or problems in the future don't hesitate to write to us again.
Regards,
Andrei
|
|