Copied to clipboard

Flag this post as spam?

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


  • Damon Bauer 48 posts 95 karma points
    Apr 15, 2014 @ 21:32
    Damon Bauer
    0

    List children's selected MNTP nodes

    I'm trying to use Razor to list all the selected nodes in a MNTP from the current page's children. For instance:

    - Parent
        - Child 1 - With MNTP selections
        - Child 2 - With MNTP selections
        - Child 3 - With MNTP selections

    My thought about what needs to happen is:
    - on the parent page, I want to build a macro to:

    • loop through all the children and gather a list of selections from the MNTP
    • combine the lists of selections
    • remove duplicates (if Child 1 and 3 both have the same selection, just keep one)
    • list the aggregated selections
    I comfortable using the MNTP for the current page, but I've never done anything like looping through children. Would I make a and add the MNTP selections, then loop through the to display?
    Thanks for any guidance!

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft