rsanchez / json

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

Returning channel_short_name #39

Open RatchetCode opened 9 years ago

RatchetCode commented 9 years ago

Great little plugin! Is there any way to return the entries channel_short_name variable?

I'm sure it isn't as simple as editing the $default_fields variable on line 124 in pi.json.php.

rsanchez commented 9 years ago

Afraid it's not that simple. You'd also need to write a join with the exp_channels table, which contains the channel_short_name.