Current

This document is valid for the current version of Plone.

document_byline and some other macros are now viewlets

by Plone Documentation Team last modified Sep 18, 2010 01:51 PM
Some content relatd TAL macros have been removed and replaced with viewlets.

This change concerns theme and add-on product authors who have custom content templates.

If your template had a byline macro, which shows the author name, before like

<div metal:use-macro="context/document_byline/macros/byline"></div>

it does not work anymore (you will receive AttributeError: document_byline).

Byline is now rendered by a viewlet plone.belowcontenttitle.documentbyline (from package plone.app.layout.viewlets) which is defined in a viewlet manager IBelowContentTitle. You need to change this to your content templates.

<div tal:replace="structure provider:plone.belowcontenttitle" />

The same goes for document actions. Old: 

<div metal:use-macro="context/document_actions/macros/document_actions"></div>

New:

 <div tal:replace="structure provider:plone.documentactions" />

For templates and macros checklist, please see this.