Copied to clipboard

Flag this post as spam?

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


  • Ayo Adesina 445 posts 1059 karma points
    Sep 11, 2015 @ 14:21
    Ayo Adesina
    0

    Convert Node to Iphblished content

    Hey guys,

    I'm working on a legacy project running v 4.7.2

    I'm using Query in a Razor view

    uQuery.GetNode(Model.Id) 
    

    This works, however I don't have the same properties that I would have if I got the node as Ipublished content, I need to order the children of the node and can't do it because Node does not have the .orderby method.

    Any ideas?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Sep 11, 2015 @ 14:59
    Alex Skrypnyk
    0

    Hi Ayo,

    v.4.7.2 Hasn't IPublishedContent interface as I know.

    You can use GetChildNodes() of umbraco.presentation.nodeFactory.Node

    Look here :

    https://ucomponents.codeplex.com/wikipage?title=uQuery

    Thanks, Alex

Please Sign in or register to post replies

Write your reply to:

Draft