Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nathan Reece 35 posts 237 karma points
    16 days ago
    Nathan Reece
    0

    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?

  • David Armitage 347 posts 1373 karma points
    16 days ago
    David Armitage
    100

    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...

    1. Create a doc type for your carousel item. This might contain properties like Heading, Main Text, Banner Image

    2. 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

    3. Now add a nested content datatype to your homepage. Call it something like Carousel Items

    4. Configure the nested content section selecting the new carousel item doc type your created.

    5. Now you can go back to the content section, go to the homepage, and start adding carousel items to the homepage.

    6. You then can render these is razor like any other datatype value.

    enter image description here

    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

  • Nathan Reece 35 posts 237 karma points
    16 days ago
    Nathan Reece
    0

    Thanks Dave, I'm all sorted now :)

    I knew id missed something somewhere

  • Nathan Reece 35 posts 237 karma points
    16 days ago
    Nathan Reece
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft