Closed rmdort closed 12 years ago
Grab the develop branch and use the show_categories="yes" parameter on the {exp:json:entries} tag.
Works.. Thanks rob.
Hi Rob. I was wondering if you could also limit the entries by categories
{exp:json:entries channel="products" category="1|2|10"}
Yes, you should be able to do that. Json extends the channel module and should inherit its parameters.
Hi Rob. Yes thats right. Its working. I have 4 category groups assigned to a channel, and so the json outputs all the categories assigned to it
Eg : http://pastie.org/2975736
This increases the size of the json file. Is there anyway i can choose a category of specific category_group only in the json. Like a show_category_group="2" parameter?
Added a show_category_group param to develop branch.
Thanks a lot Rob. Works great.
I'm seeing that it output the category information when I go to my page, however when I try to access it with code it doesn't work. It will pull everything but category information, any thoughts on why this is?
Hi Rob,
Could you add category info of an entry in the jSON output.