addScriptDeclaration('var K2BasePath = "'.JURI::root(true).'";'); $document->addScript(JURI::root(true).'/plugins/josetta_ext/k2item/fields/k2extrafields.js'); K2Model::addIncludePath(JPATH_SITE.'/components/com_k2/models'); JLoader::register('K2HelperUtilities', JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'utilities.php'); $model = K2Model::getInstance('Item', 'K2Model'); $extraFields = $model->getItemExtraFields($this->value); $html = '
'.$extraField->name.' | '.$extraField->element.' |