Hi Redouane, Can you describe a use case to help us understand what you want to do? Who is interacting with the page? An editor or a visitor?
It's a little unusual for a template script to _create_ nodes. Templating functions in Magnolia typically only consume content from the repository, then render it to visitors. See cmsfn templating functions https://documentation.magnolia-cms.com/display/DOCS/cmsfn Have you looked at component autogeneration? It allows you to create components inside an area automatically without editor involvement. https://documentation.magnolia-cms.com/display/DOCS/Component+autogeneration --Antti -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=3f997b62-2b55-42a9-a8bc-610529a1d7f1 ---------------------------------------------------------------- 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: <user-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------