I've been experimenting the Umbraco 8 in the past few weeks.
We have created a custom Umbraco Event with the IComponent interface to create a new doc type on node pubished based on criteria. That is working well, the question here is: we want to create that document type under a folder that is under that that is being published and not under the page. I'm not seeing any method to return the Children of an IContent object in v8. Do you know if that's possible?
Example:
Page 1
Folder
New doc type
What we want to do is, when the Page 1 is published, we want to create the new doc type within the "folder" node. We could create the "new doc type" under the "page 1", but I'm not getting how can I create the new doc type within the "folder" node.
Just to let you know that I manage to solve this issue by using the GetById() method from the IContentService interface, where I passed the Model.Id of my folder.
Getting IContent Children in v8
Hi guys,
I've been experimenting the Umbraco 8 in the past few weeks. We have created a custom Umbraco Event with the IComponent interface to create a new doc type on node pubished based on criteria. That is working well, the question here is: we want to create that document type under a folder that is under that that is being published and not under the page. I'm not seeing any method to return the Children of an IContent object in v8. Do you know if that's possible?
Example:
Page 1
Folder
What we want to do is, when the Page 1 is published, we want to create the new doc type within the "folder" node. We could create the "new doc type" under the "page 1", but I'm not getting how can I create the new doc type within the "folder" node.
Thanks for you help,
Using the ContentService you can get the children of a given node through
That works quite well for me.
Hi David,
Thank you so much for your help on this.
What are the correspondent values to the pagesize and pageindex input values of the GetPagedChildren method?
Hi guys,
Just to let you know that I manage to solve this issue by using the GetById() method from the IContentService interface, where I passed the Model.Id of my folder.
Thanks for your help on this David,
Have you all a nice weekend,
is working on a reply...