• Sign In
    • Forgot your password?
    • Forgot your username?

K2 | The powerful content extension for Joomla! developed by JoomlaWorks

  • home
  • about
  • blog
  • documentation
  • extend K2
  • showcase
  • community
  • demo
K2 brings the good parts from WordPress & Drupal into Joomla
You are hereblog K2 v2.5.7 released - introduces JSON & JSONP content output

K2 v2.5.7 released - introduces JSON & JSONP content output

09 May 2012, 18:49 by Fotis Evangelou
Start your update engines! K2 v2.5.7 is now available to download.

If you're in Joomla! version 1.7 to version 2.5, you can update from 2.5.5 or 2.5.6 to this latest build directly via the built-in Joomla! updater. If you're on Joomla! 1.5 or if you use a version prior to K2 v2.5.5, just grab the zip file and upload on top.

There are no template changes since 2.5.4 so you can safely upgrade with no need to check you MVC overrides on your template.

This is a maintenance release. Compared to v2.5.6, we fixed warnings/bugs/annoyances/gremlins mainly appearing in Joomla! 2.5.
Most notable changes are:
  • We are introducing JSON & JSONP content output. This is phase 1 towards a true REST capable K2 release coming in version 3. We want you to be able to turn your Joomla! & K2 website into a source of content ready to be consumed or updated by third-party applications, e.g. a mobile application that reads and posts content to your K2 powered Joomla! website. Or simple stuff like AJAX calls are now a piece of cake for developers. To quickly set you up, just append 'format=json&limit=X&page=Y' to any K2 generated URL, replacing X with the number of items you want to fetch (with a forced limit of 100) and Y as the page number (if you wish to break your results in pages). At its simplest form, just append 'format=json' to get the default K2 output in JSON. The additional GET parameters mentioned above only work in categories, user pages, tags etc. If you append 'format=json' to an item URL you will get all the item's contents in JSON format. Additionally, you can pass a callback function to the above URLs in case you want to wrap the output in a function. The format is 'format=json&callback=Z', replacing Z with your callback function name.
  • We have fixed a nasty bug where Flickr galleries set via Simple Image Gallery Pro where not displaying the frontend of your site, but had no problem rendering in the backend! I know, some of you almost got insane with this stupid bug. All sorted now of course.
  • We now allow 'content' plugins in Joomla! 2.5 to be properly rendered in the category description. Previously this was only possible in Joomla! 1.5. So now you can -for example- execute the 'loadposition' plugin in your category descriptions.
  • When deleting an item that contains audio files, these audio files are now properly deleted.
  • Fixed a bug in category inheritance. Now when a category is set to inherit the parameters from another category, it will NOT also inherit the metadata from this other gallery but maintain its own unique metadata.
  • Fixed issue regarding the email button on item view (only affecting Joomla! 1.5 websites).
For any other geek, see the detailed changelog on the SVN server here: http://code.google.com/p/getk2/source/list
Discuss on the K2 forum

Tags:

  • release ,
  • json ,
  • jsonp ,
  • rest ,
  • api
Tweet
Author
Fotis Evangelou

Fotis Evangelou

https://getk2.org

Social Profiles

Facebook Twitter YouTube
  • Contact us
  • Privacy Policy
  • License
  • K2 Downloads
  • K2 Metrics
  • K2 on GitHub
back to top
Copyright © 2006 - 2025 JoomlaWorks Ltd. All rights reserved. K2 is a joint project by JoomlaWorks & Nuevvo, released under the GNU/GPL license.
Joomla is a registered trademark of Open Source Matters, Inc. K2 is not affiliated with or endorsed by Open Source Matters or the Joomla Project.
designed by Nuevvo