├── README.md ├── latestarticles.php └── latestarticles.xml /README.md: -------------------------------------------------------------------------------- 1 | Joomla! Ajax Latest Articles Plugin 2 | =================== 3 | Am example plugin for the [Joomla Ajax Interface](https://github.com/betweenbrain-llc/Joomla-Ajax-Interface). 4 | 5 | This plugin retrieves the latest X number of articles so they can be consumed by external AJAX processes. 6 | 7 | Stable Master Branch Policy 8 | ==================== 9 | The master branch will, at all times, remain stable. Development for new features will occur in branches, and when ready, will be merged into the master branch. 10 | 11 | In the event features have already been merged for the next release series, and an issue arises that warrants a fix on the current release series, the developer will create a branch based off the tag created from the previous release, make the necessary changes, package a new release, and tag the new release. If necessary, the commits made in the temporary branch will be merged into master 12 | 13 | Contributing 14 | ==================== 15 | Your contributions are more than welcome! Please make all pull requests against the develop branch. -------------------------------------------------------------------------------- /latestarticles.php: -------------------------------------------------------------------------------- 1 | getQuery(true); 24 | $query 25 | ->select($db->quoteName(array('title', 'introtext', 'fulltext'))) 26 | ->from($db->quoteName('#__content')) 27 | ->order($db->quoteName('modified') . ' ASC'); 28 | 29 | $db->setQuery($query, 0, $this->params->get('limit', 5)); 30 | 31 | return $db->loadObjectList(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /latestarticles.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | Ajax - Latest Articles 7 | 0.1 8 | May 20, 2013 9 | Matt Thomas 10 | matt@betweenbrain.com 11 | http://www.betweenbrain.com 12 | GNU General Public License version 2 or later 13 | Copyright (C) 2013 betweenbrain llc. All rights reserved. 14 | Joomla Ajax Latest Articles Plugin 15 | 16 | 17 | latestarticles.php 18 | 19 | 20 | 21 | 22 |
23 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
40 |
41 |
42 | 43 |
--------------------------------------------------------------------------------