Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 9
3 votes

BaseController::returnJson & devMode interference

As of Craft 2.2, Craft will now only add the logs to the response if the Content-Type header is going to be "text/html" or "application/xhtml+xml". Should solve this for you.
Brandon Kelly's user avatar
6 votes
Accepted

What criteria can the Element API plugin accept?

return [ 'title' => $state->title, 'url' => $state->url, 'latitude' => $state->latitude, 'longitude' => $state->longitude, 'jsonUrl' => UrlHelper::getUrl("locations/{$state->id}.json
Brandon Kelly's user avatar
7 votes
Accepted

Passing multiple parameters to the Element API

You can fetch GET parameters using HttpRequestService::getQuery() or getRequiredQuery(): 'entries-by-category' => function() { $categoryIds = craft()->request->getRequiredQuery('categoryIds'); …
Brandon Kelly's user avatar
27 votes
Accepted

How can I retrieve channel data in json format?

Twig is great for outputting HTML/XML markup, but it’s not exactly the best option when you just want to output some data as JSON. … To achieve your desired JSON output, you would set your craft/config/elementapi.php file to this: <? …
Brandon Kelly's user avatar
3 votes
Accepted

Creating entries from JSON feed - plugin?

JSON support is on the roadmap, but in the meantime, it’s easy enough to convert JSON to a CSV with a little bit of Javascript. …
Brandon Kelly's user avatar
2 votes
Accepted

How to skip the first X entries using ElementAPI

We just released Element API 2.6.0 with added support for the offset criteria param, in combination with paginate => true. (Thanks to @missmatsuko for posting a GitHub issue about it: https://github. …
Brandon Kelly's user avatar