I create a CMS for my client to work with my photos and sell them on my site. For the end of the CMS and the front end, where both will be all AJAX, it would be nice to get the JSON channel set up so that I can use the same channel to create new βpagesβ and βviewsβ using JS.
So, this sample channel will look like {[name: 'A Photo', description: 'lorem ipsum ...'], [...]}, and then with jQuery or JS I can create a table of all his photos, pages etc. How can I customize this for myself?
Should I just create a PHP file that gets all the data from MongoDB, put it in an array, than convert the array to JSON?
source share