Inserting content of Plone document into Zope template

As explained in an recent article titled ‘Edit ZPT content through Plone ‘ on plone.org, we can insert the content of a document called my-document, say, by inserting the following into your template:

<tal:block tal:condition="exists:here/footer-content/my_document"
             tal:replace="structure here/footer-content/my_document/getText">
              Document content here</tal:block>

Perhaps one of these days Plone can use this method so that we can edit footers and colophons directly through Plone; ive submitted a ticket to Plone here…

Perhaps we could even extend it to things like bylines, although that’s a harder kettle of fish as we’re dealing with variables like creator and modification date. Any ideas, anyone?

Comments are closed.