[MAGNOLIA-7415] Versioning and publication for different nodetypes using CT module Created: 20/Nov/18  Updated: 28/Dec/18

Status: Accepted
Project: Magnolia
Component/s: None
Affects Version/s: 5.7.1
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Viet Nguyen Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLCT-85 Automatic subscribe workspaces config... Closed
causality
relation
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Release notes required:
Yes

 Description   

Given a set of custom node-types:

[bulletin] > mgnl:content
[contentBlock] > mgnl:contentNode

where bulletins may contain 0...n contentBlocks (similar to mgnl:page vs. mgnl:component, or mgnl:composition vs. mgnl:block).
https://jira.magnolia-cms.com/secure/attachment/49049/jcrStructureExample.png

When publishing, by default, content-nodes (contentBlocks) are not published with their parent content (bulletin).

The configuration point to include custom nodetypes into publication process is "itemTypes" under the activation command. Include custom nodetypes using comma separated format without space.
See /modules/personalization-integration/commands/default/personalizationActivation@itemTypes=mgnl:contentNode,mgnl:componentVariants

From the restoreAllChildren action, one can set the flag RestorePreviousVersionCommand#parentNodeTypeOnly (in addition to #itemTypes), to false—which is otherwise to 'true' by default. See /modules/pages/apps/pages/subApps/browser/actions/restorePreviousVersion@parentNodeTypeOnly

Then it works with these itemTypes: mgnl:contentNode,mgnl:metaData,mgnl:resource,contentBlock

We need to recollect the rationale why parentNodeTypeOnly is true by default, and whether mgnl:contentNode could be present in itemTypes by default. (cc rkovarik)
I expect the type-checks to be done with javax.jcr.Node#isNodeType, so there should be no need for additional configuration for custom sub-types.

Returns true if this node is of the specified primary node type or mixin type, or a subtype thereof.


Generated at Mon Feb 12 04:23:34 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.