Hi,
I'm developing a silverstripe + angularjs app. I'm creating a web service based on the restfulserver module that given a resource url it returns the data for that url.
Here is a snipped of the function that returns the data (http://pastebin.com/EUQPfkwQ).
I need to expose a web service with the following structure (http://pastebin.com/iAG0YCDK).
I need to know how to get the sitetree object related data in code.
Ej. Background field, background color, Gallery images related to the page.
Here is an example of my Page Class (http://pastebin.com/GNEeQSe3)