Copied to clipboard

Flag this post as spam?

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


  • Mario 140 posts 836 karma points c-trib
    Nov 25, 2016 @ 09:04
    Mario
    0

    Order on contentResource.GetChildren wrong

    I guess I'm doing something wrong but I can't realise what. I'm just playing with a custom dashboard for the backend. My controller is this:

    angular.module("umbraco").controller("test.controller",     function ($scope, contentResource) {
        contentResource.getChildren(1065, {
            orderBy: "Name", //I tried with CreateDate and _umb_createdate and name
            orderDirection: "Descending",
            pageSize: 6,
            page: 0
        }).then(function (data) {
            $scope.items= data.items;
        });
    })
    

    And doesn't matter what orderDirection I enter that always returns in Ascending order. Ideas? Thanks.

  • 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