Copied to clipboard

Flag this post as spam?

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


  • blackhawk 313 posts 1368 karma points
    Sep 28, 2017 @ 18:44
    blackhawk
    0

    From BackOffice, count how many child nodes exist under any given parent node

    For administrative purposes in Backoffice, is there an API or package that we can show us how many child nodes exist under any given parent node?

    Thanks

  • Alex Skrypnyk 6148 posts 24097 karma points MVP 8x admin c-trib
    Sep 29, 2017 @ 08:58
    Alex Skrypnyk
    0

    Hi Blackhawk

    Do you want to see how many child nodes under each node in Umbraco? So node names should be with numbers of child nodes like:

    • home(23) -- blog(11) -- contact us(0)

    Thanks,

    Alex

  • blackhawk 313 posts 1368 karma points
    Sep 29, 2017 @ 11:40
    blackhawk
    0

    Yes! That is what I was envisioning.

  • Alex Skrypnyk 6148 posts 24097 karma points MVP 8x admin c-trib
    Sep 29, 2017 @ 11:42
    Alex Skrypnyk
    0

    There no such package in Umbraco space.

    You can create custom solution for it, Content Service documentation will be helpful:

    Content Service Events - https://our.umbraco.org/documentation/reference/events/contentservice-events

    Content Service - https://our.umbraco.org/documentation/reference/management/services/contentservice

    Thanks,

    Alex

  • Alex Skrypnyk 6148 posts 24097 karma points MVP 8x admin c-trib
    Sep 29, 2017 @ 11:43
    Alex Skrypnyk
    0

    Can you describe what type of nodes do you want to display with numbers of children?

    Also, you know that if you rename the "Home node" to "Home node(12)" it will cause changing of url of the page and it can cause SEO problems.

    Thanks,

    Alex

  • blackhawk 313 posts 1368 karma points
    Sep 29, 2017 @ 11:48
    blackhawk
    0

    Thanks for the links! I'll go ahead and play with content services. I need some way to quickly determine which node sections are larger than others. Sometime in the future, I'm going to have a 500 node site with at least 12 parent nodes under the root node.

  • Alex Skrypnyk 6148 posts 24097 karma points MVP 8x admin c-trib
    Sep 29, 2017 @ 14:06
    Alex Skrypnyk
    0

    Blackhawk, please share with community what will you achieve.

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft