Copied to clipboard

Flag this post as spam?

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


  • Liam 1 post 21 karma points
    Mar 19, 2014 @ 18:24
    Liam
    0

    Select children with common Master Document Type

    Hi,

    Probably really simple question but I'm trying to select all of the children of my current page that share a common Master Document Type.

    So if I have a Document Type of 'Fruit'. And then Child Nodes of type 'Apple' and 'Orange', I'd like a query that allows me to select those. Something like:

    @foreach(var node in CurrentPage.Children.Where("node => node is Fruit") ) {

     

    Using the Master type is pretty important as I don't want to have to edit code if I subsequently add 'Banana'.

    I'm guessing there's a pretty obvious solution I'm missing?

  • Jeavon Leopold 3008 posts 13221 karma points MVP 7x admin c-trib
    Mar 19, 2014 @ 18:33
    Jeavon Leopold
    0

    Hi Liam,

    Welcome to Our!

    I think you are saying that the child nodes are of different document types but that they have the same master document type? If so, this isn't actually a common requirement however I believe I answered this question before here

    Let me know if I've understood you right or not.

    Jeavon

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies