rsanchez / json

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

Return all fields from multiple channels? #32

Closed mchristie closed 10 years ago

mchristie commented 10 years ago

This plugin is working great for single channels, but I need to return results from multiple channels at once, and if I omit channel="xxx" I get the correct results but with only the standard fields (title, status, etc). Is it possible to return ALL custom fields when searching multiple channels? As far as I can see there are no parameters for this? Thanks

mchristie commented 10 years ago

Actually there's a simple work around, in EE if you don't include a channel="xx" it defaults to all, but if you use channel="specify|every|channel" it includes all the fields, including those from other channels as empty strings.

rsanchez commented 10 years ago

Closed before I could respond, I love it! You're right, the problem is upstream in the channel module, it won't load custom fields unless you specify channel(s).