craftcms / element-api

Create a JSON API/Feed for your elements in Craft.
MIT License
498 stars 57 forks source link

Global variables as JSON #13

Closed mrjjwright closed 8 years ago

mrjjwright commented 8 years ago

Is there an easy way to get the global variables that are normally available to templates returned as JSON? I know I can figure this out myself but I thought I would ask first.

https://craftcms.com/docs/templating/global-variables

brandonkelly commented 8 years ago

@mrjjwright Yes, possible. Just posted a similar question on craftcms.stackexchange.com and answered it there: http://craftcms.stackexchange.com/a/14691/9

FFR please post usage questions on that site, and only post actual issues here, thanks!