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
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"}]}
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.
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?
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.
did you ever work out how to get the media paths from this?
Cheers,
Tom
is working on a reply...