|
|
|
Change By:
|
Milan Divilek
(16/Aug/13 8:43 AM)
|
Description:
|
Lets have this structure of autogeneratedComponents
- autoGeneration -- conent --- first component --- second component --- third component
Then visit the page where autogenerated components are located. Remove the first component. The component is automatically created and is
order
ordered
on last place. But when you remove second component then the component is not automatically created again.
Similarly when you add new component into autogenerated components in
tmeplate
template
definitions - then if you place this component on first place then this component is generated during first visit of page, but when you add this component on different place then the component is not automatically generated.
The problematic code is info.magnolia.rendering.generator.CopyGenerator.createNode(Node, Map<String, Object>) {code} if(parentNode != null && parentNode.hasNode(name)) { log.debug("path {} was already found in repository. No need to create it.", parentNode.getPath() + "/" + name); break; } {code}
we check
it checks
if the component node
is exist
exists
if yes then
we
it
"break" for loop so no other components are processed.
If we change break to continue then all component will be process, but this break the functionality of remove component from the page. Different question is if we want allow removing autogenerated components?
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------