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 206 posts 500 karma points c-trib
    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

Please Sign in or register to post replies

Write your reply to:

Draft