Copied to clipboard

Flag this post as spam?

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


  • Jamie Attwood 147 posts 363 karma points
    Jul 21, 2014 @ 19:52
    Jamie Attwood
    0

    Razor "Where" Clause using Multi Node Tree Picker Stored as XML

    I have a MNTP with values stored as XML. The alias of the MNTP is called "articleContributor". contributorId is the ID that I pass to the search. Now, I need to perform a basic search result using Where and Contains so that the Dynamic node list is performed in one query. For example:

     searchResults = Model.NodeById(defaultFolder).Descendants("ArticlePage").Where("articleContributor.nodeId.Contains(@0)", contributorId)

    This does not throw an error but it also does not return results as it should. The MNTP returns this code:

    <MultiNodePicker type="content"><nodeId>1245</nodeId></MultiNodePicker>  

    Any Help GREATLY appreciated!

    Jamie

  • 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