With a little side of applesauce...

Tuesday, April 15, 2008

Plone - Zope Page Template skeleton

I thought I had posted this at one time, but it must have been lost in the blog migrations over time. Zope Page Templates are central to Plone content creation, but it is difficult to find an example of the additional elements which are needed to get your Page Template to show up in the Plone main slot:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"
metal:use-macro="here/main_template/macros/master"
i18n:domain="plone">

<body>

<div metal:fill-slot="main">

... fill in some HTML and TAL here

</div>
</body>
</html>


Thanks to the following tutorial for the example:
http://plone.org/documentation/tutorial/plone-and-mysql/creating-your-first-page

Interestingly, the page is still not showing up in the parent's "Contents" list, but that is not a blocking bug at this point...

No comments: