[MAGNOLIA-6834] Make RenderableDefinition.getAutoGeneration() also work for Page Templates and Component Templates, and not just for Area Templates. Created: 19/Oct/16  Updated: 19/Oct/16

Status: Open
Project: Magnolia
Component/s: templating, templating components
Affects Version/s: 5.4.9
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Christian Ringele Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Auto generation is defined on:
info.magnolia.rendering.template.RenderableDefinition.getAutoGeneration()
That mean it can be officially be configured on Pages & Areas & Components.

But it will work only on Areas, because reading and executing the bean is only implemented in:
info.magnolia.templating.elements.AreaElement.tryToCreateAreaNode(Node)

It should be moved/added to the super class shared for all three templating elements:
info.magnolia.templating.elements.AbstractContentTemplatingElement

So it works also for pages and components, as the bean indicates.


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