[MAGNOLIA-6022] Allow to get ancestor of RederableDefinition from RenderingContext Created: 16/Dec/14  Updated: 16/Jan/15  Resolved: 06/Jan/15

Status: Closed
Project: Magnolia
Component/s: rendering
Affects Version/s: None
Fix Version/s: 5.4

Type: Improvement Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLADVCACHE-35 Move SnippetInjectionListener from re... Closed
is depended upon by MAGNOLIA-6034 Move SnippetInjectionListener to Adva... Closed
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)
Epic Link: DPC

 Description   

We need to know parent AreaDefinition to correctly build a snippet path for a nested area (/demo-project/about~mgnlArea=extras,extra1~).
We could get RenderableDefinition from parent content (about page in this case) and then go trough all areas until we find the right one as a workaround. But this is not very effective and could collide on areas with a same name.


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