[ZCM] [ZC] 2323/ 7 Comment "Page Template and DOCTYPE"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Sat, 12 May 2007 10:35:01 -0400
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2323 Update (Comment) "Page Template and DOCTYPE"
Status Rejected, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/2323
==============================================================
= Comment - Entry #7 by sukhsc on May 12, 2007 10:34 am
OOPPPPS sorry. You have no idea how long been looking at that. Soz abt moody email before and thanks for the fix
________________________________________
= Reject - Entry #6 by tseaver on May 11, 2007 1:01 pm
Status: Pending => Rejected
The macro you are pulling in from 'test_template' *starts*
with the '<html>' tag: it is never going to pull in content
from *before* that tag.
The usual way to get the <DOCTYPE> prolog pulled in from the main
template is as follows:
<metal:block metal:define-macro="page"
><DOCTYPE .....><html xmlns="....
...
</html>
</metal:block>
________________________________________
= Comment - Entry #5 by sukhsc on May 11, 2007 12:28 pm
Please find below code examples which demostrate the problem. Thanks
the template:
======================================
<!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" html>
<html xmlns="http://www.w3.org/1999/xhtml" metal:define-macro="page">
<head>
</head>
<body>
<metal:block define-slot="body"></metal:block>
<input type="submit" value="My Submit Button Inside Template" class="myButton">
</body>
</html>
The file
======================================
<tal:block metal:use-macro="here/test_template/macros/page">
<metal:block fill-slot="body">
<input type="submit" value="My Submit Button Outside Template" class="myButton">
</metal:block>
</tal:block>
________________________________________
= Comment - Entry #4 by sukhsc on May 11, 2007 12:25 pm
This issue is a bug in the system which causes many features of style sheets not to work in IE browsers. I therefore consider this a critical issue and was disappointed to see it had been amended to medium importance. Please could you respond to inform why this has been changed to medium importance.
Thank You
________________________________________
= Comment - Entry #3 by ajung on May 11, 2007 12:21 pm
Please provide a unittest that demonstrates the behavior.
________________________________________
= Edit - Entry #2 by ajung on May 11, 2007 12:14 pm
Changes: submitter email, importance (critical => medium)
________________________________________
= Request - Entry #1 by sukhsc on May 11, 2007 12:08 pm
When you use a pagetempalte to create a template for all your page tempalte pages with the use of slots, when the page is rendered it loses the <!DOCTYPE> tag at the top of the page. For example:
IF the first two lines of your template with the slots in is:
<!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" metal:define-macro="page">
if you use the slots in another page template that page is rendered to be:
<html xmlns="http://www.w3.org/1999/xhtml" metal:define-macro="page">
Losing the doctype tag at the top of the page.
Thanks
==============================================================