How to integrate popfeed plugin with the jevents component - Joomla! Forum - community, help and support
hi, trying integrate popfeed plugin jevents component. popfeed works joomla articles. need know how or of objects defined. below snippet of code helper.php popfeed plugin.
in case, or how object $this->article defined. alter helper file , have similar $this->event->id in order suit jevents component
code: select all
public function isnotexcluded() {
if ( (isset($this->article->id)) && ($this->article->id > 0) ) {
if ( in_array($this->article->id, explode(',', $this->params->get('excluded_ids', ''))) ) {
return false;
}
if ($this->params->get('catids', '') != '') {
$db = jfactory::getdbo();
$db->setquery('select count(*) `#__content` '.
' `id` = "'.$aid.'" '.
' , `catid` in ('.$this->params->get('catids', '').')');
return ($db->loadresult() > 0);
}
}
return true;
}
in case, or how object $this->article defined. alter helper file , have similar $this->event->id in order suit jevents component
going through https://docs.joomla.org/supporting_plug ... _component trying figure out how create custom plugin groups in joomla. there!
Comments
Post a Comment