[Product-Developers] Create new plone.app.page type

Martin Aspeli optilude+lists at gmail.com
Thu Jul 21 07:45:59 UTC 2011


On 21 July 2011 08:32, Maarten Kling <maarten at fourdigits.nl> wrote:
> Hello,
>
> I am using Deco to setup a new website, the default Page type from
> plone.app.page type works fine.
> Now i need to create a new dexterity type called 'person' witch is having
> the same (layout)properties like Page and some add-ons features.
> I need the layout aware behaviors for editing my type the Deco way.
>
> As there is no class for the Page type from plone.app.page I cannot inherit
> my Person type from the Page type and have to write all the FTI Deco needed
> stuff myself.
>
> I there an easy way to do this?
>
> In the XML for my type there is <element
> value="plone.app.blocks.layoutbehavior.ILayoutAware" /> defined.
>
> Hoping anyone can help.

Try to derive from the IPage schema and use the same FTI setup except
for the interface/title/description.

Martin


More information about the Product-Developers mailing list