Copied to clipboard

Flag this post as spam?

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


  • Andrew Hawken 59 posts 116 karma points c-trib
    Mar 01, 2017 @ 12:42
    Andrew Hawken
    0

    contentResource getById vs getChildren

    Looking at the documentation

    contentResource.GetById(id) returns

    resourcePromise object containing the **content item**.

    and contentResource.getChildren(parentId) returns

    resourcePromise object containing an array of **content item**s.

    So my expectation is that (other than being wrapped in an array) I should get the same data back from both. However...

    the GetById results contains a "tabs" property which in turn contain a "properties" array

    whereas the individual items in the getChildren results contain a "properties" array directly.

    There are other differences but its on the properties I'm trying to access - Is one of these returning a IPublishedContent equivalent, and the other returning IContent?

    Can I get the equivalent result to the one I see with getChildren when armed with a nodeid?(Without going up and down the tree!)

  • Andrew Hawken 59 posts 116 karma points c-trib
    Mar 03, 2017 @ 13:34
    Andrew Hawken
    0

    Is my best course to report this as a documentation bug/issue on Github?

Please Sign in or register to post replies

Write your reply to:

Draft