add a resourcetype to pages created by PagePersistenceStrategy

Description

At the moment the pages created by the PagePersistenceStrategy are no real pages in an AEM sense, but just have the required node structure from a JCR point of view. Most notably these pages lack a resource type.

It would be great if the PPS could add a (customizable) resourcetype.

(I imagine that we could then invoke the wcm.io configuration editor with it, and so be able to edit the configuration stored in the very page. Not sure if that's easily possible, but even a simple rendering script would be helpfull.)

Activity

Show:
Stefan Seifert
August 22, 2018, 8:26 PM

as a starting point we could allow to configure a resource type for the cqage nodes that are created below /conf.
assigning the wcm.io caconfig editor resource type will not work, it's not designed that way.

we could add a simple set of rendering scripts that is the default value for the resource type, they just output the configuration data.

Stefan Seifert
August 30, 2018, 7:18 AM

implemented
https://github.com/wcm-io/wcm-io-caconfig/commit/cd3d020c793e89661f34af81b12773c904fce5eb

there is a new resourceType configuration property in the OSGi configuration of "AEM Page" persistence strategy.

you also need to update the OSGi configuration to prevent the sling:resourceType property to be overwritten when persisting configuration data:

Jörg Hoh
September 22, 2018, 4:56 PM

Looks good, thanks!

Fixed

Assignee

Stefan Seifert

Reporter

Jörg Hoh

Labels

None

Components

Affects versions

Priority

Major
Configure