[MAGNOLIA-396] beans.config.Paragraph ignores ContentNode.children Created: 18/May/05  Updated: 23/Jan/13  Resolved: 17/May/06

Status: Closed
Project: Magnolia
Component/s: admininterface
Affects Version/s: 2.1.1
Fix Version/s: 3.0 RC1

Type: Improvement Priority: Major
Reporter: Uwe Rosebrock Assignee: Boris Kraft
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

any


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)
Date of First Response:

 Description   

First Issue;
In beans.config.Paragraph the call to update iterates through the top level to find pragraph mappings. It is also supposed to iterate through children folders, creating chidren folders is disabled in the gui. If one creates further ContentNodes as children theses are ignored.
Solution:
either enable the creation of folders in gui or
change the getChildren type to ItemType.NT_CONTENTNODE

Second issue;
the assigned name under above must be unique in the tree, wouldn't it be more appropriate to create a subpath for the name eg.

'modules/templating/Paragraphs/global/text' -> data.name=text
becomes 'global/text'
rather than 'text'
alternatively drop the name attribute and build the name from the subpath.



 Comments   
Comment by Philipp Bracher [ 17/May/06 ]

is working now

Generated at Mon Feb 12 03:17:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.