rsanchez / json

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

Returning channel_short_name #39

Open RatchetCode opened 10 years ago

RatchetCode commented 10 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 10 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.