rsanchez / json

Output ExpressionEngine data in JSON format.
http://devot-ee.com/add-ons/json/
100 stars 236 forks source link

Categories #19

Closed nate8684 closed 11 years ago

nate8684 commented 11 years ago

Noticed that when you pull the categories it doesn't show them if no entires are tied to them. Is there a way around this? I need it to show all categories even if it is empty.

rsanchez commented 11 years ago

Are you using exp:json:categories tag? or categories in exp:json:entries?

nate8684 commented 11 years ago

exp:json:entries tag... The trouble is that I need to access some of the entry information but still need the category even if it doesn't have an entry tied to it...thoughts?

rsanchez commented 11 years ago

I think you'll have to use the exp:channel:categories tag and build your own JSON output :/ This plugin does not deal with empty categories.