joomla.finder('cateogory', options)<?php
// Include the engine
include_once(JPATH_ADMINISTRATOR . '/components/com_easyblog/includes/easyblog.php');
// Only fetch 10 posts
$limit = 10;
// Category id's (one or more)
$options = array(1);
$model = EB::model('Category');
$posts = $model->getPosts($options, $limit);easyblog.finder('cateogory', options)class Easyblog { ... }
class plgGantryEasyblog extends \Joomla\CMS\Plugin\CMSPlugin
{
public function onGantry5ThemeInit($theme)
{
if ($this->app->isClient('site'))
{
$gantry = \Gantry\Framework\Gantry::instance();
$gantry['easyblog'] = function() { return new Easyblog(); };
}
}
}{% set easyblog = gantry.easyblog %}You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »