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 419 posts 1001 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 5908 posts 22603 karma points MVP 4x 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

  • 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