Right so im not sure how to get the nested content editor working on my site.
I have added a doctype of Content item and now im trying to add the Nested Content Property to my Home page. But when I go to set up my Nested Content Editor there are no element tags groups or templates to choose from?
So a nested content datatype allows you to relate other content items to the document type you are working with. I use this a lot in every project.
So for example of your homepage banner is a carousel you could add each carousel item as nested content.
To achieve this you would first...
Create a doc type for your carousel item.
This might contain properties like Heading, Main Text, Banner Image
Make sure this document type is marked as a 'Is an Element type'.
This can be done in the document type permissions.
This allows this document type to be been by the nested content data type
Now add a nested content datatype to your homepage.
Call it something like Carousel Items
Configure the nested content section selecting the new carousel item doc type your created.
Now you can go back to the content section, go to the homepage, and start adding carousel items to the homepage.
You then can render these is razor like any other datatype value.
I have created the document type by using umbraco.nestedcontent.
at the time of creation of associate elements i can able to add and edit the items.
but after some time if we need to update the content in associate elements it is not showing the editor window why? How it will possible to have the editor after saving the content.
Umbraco 8 Nested Content Editor
Right so im not sure how to get the nested content editor working on my site.
I have added a doctype of Content item and now im trying to add the Nested Content Property to my Home page. But when I go to set up my Nested Content Editor there are no element tags groups or templates to choose from?
Can any one help is there something i am missing?
Hi Nathan,
So this is pretty easy.
So a nested content datatype allows you to relate other content items to the document type you are working with. I use this a lot in every project.
So for example of your homepage banner is a carousel you could add each carousel item as nested content.
To achieve this you would first...
Create a doc type for your carousel item. This might contain properties like Heading, Main Text, Banner Image
Make sure this document type is marked as a 'Is an Element type'. This can be done in the document type permissions. This allows this document type to be been by the nested content data type
Now add a nested content datatype to your homepage. Call it something like Carousel Items
Configure the nested content section selecting the new carousel item doc type your created.
Now you can go back to the content section, go to the homepage, and start adding carousel items to the homepage.
You then can render these is razor like any other datatype value.
Hope this helps.
If not there is more information that can be found here. https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/Nested-Content/
Regards
David
Thanks Dave, I'm all sorted now :)
I knew id missed something somewhere
For anyone having any issues with nested content i have wrote a step by step blog on how to get nested content working and displayed on your web page
Here is the link: https://www.umbrajobs.com/blog/posts/2020/july/working-with-nested-content-in-umbraco-8/
Hope this helps people out.
Hi Nathan Reece,
I have created the document type by using umbraco.nestedcontent.
at the time of creation of associate elements i can able to add and edit the items.
but after some time if we need to update the content in associate elements it is not showing the editor window why? How it will possible to have the editor after saving the content.
is working on a reply...