Copied to clipboard

Flag this post as spam?

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


  • Mario Lopez 168 posts 952 karma points MVP 3x c-trib
    Nov 25, 2016 @ 09:04
    Mario Lopez
    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.

Please Sign in or register to post replies

Write your reply to:

Draft