Copied to clipboard

Flag this post as spam?

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


  • Mohammad Waheed 7 posts 50 karma points
    Jan 29, 2013 @ 21:17
    Mohammad Waheed
    0

    How to use 'Node 2 JSON' and get media nodes?

    Hi,

    i'm using Umbraco 4.11.1 and Node2JSON_0.9

    When i browse my site and use /node2json?id=1150, it shows json, which is great. but I want to use it for the media folder. I have a folder called "Gallery" under Media with a nodeid of 1126. So i'm using the Node2Json this way

    http://My-SiteName.com/Node2JSON?id=1126

    but since images and folders don't have a "pubish" option, i get this error message. What can i do in the razor component that comes with Node2JSON to work with the media?

    {"results":[{"nodeName":"","nodeId":"0","error":"No published item exist with id 1126"}]}
  • Mohammad Waheed 7 posts 50 karma points
    Feb 04, 2013 @ 18:18
    Mohammad Waheed
    0

    No one has ever wanted to do this? I guess I'm the first person who wants to return Media via json and found the obvious limitation with Node2Json in Umbraco.

  • Tom 713 posts 954 karma points
    Aug 15, 2014 @ 08:05
    Tom
    0

    did you ever work out how to get the media paths from this?

    Cheers,

    Tom

  • 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