You can create a personal template with the extrafields values. Is very easy and flexible.

First you should add the api library with:

// require helper file
JLoader::register('fieldattach', 'components/com_fieldsattach/helpers/fieldattach.php'); 

 

FUNCTIONS ( ONLY ONE FUNCTION FOR ALL EXTRATYPES )

fieldattach::getFieldValue($articleid, $fieldid, $category = false)

Parameters $id(Article id)
$fieldsids(field id)
$category, true or false (default false)
Return HTML of field

 


 

Render all fields to article

fieldattach::getAllFieldValue($articleid, $category = false)

Parameters $id(Article id)
$category, true or false (default false) (It don't work yet)

 


 

fieldsattach::getName($id, $fieldsids, $category=false)

 
Parameters $id(Article id)
$fieldsids(field id)
$category (boolean)  
Return Value of name of field

fieldattach::getValue($id, $fieldsids, $category=false)

Parameters $id(Article id)
$fieldsids(field id)
$category (boolean) 
Return Value of field, without HTML tags. ONLY for a input, textarea and select extratypes

 

NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it. Learn more

I understand