If you want to include a custom field in your Override you have to use following code:
`<?php
// Article-Fields Mapping
foreach ($item->fields as $field) {
$item->fieldalias[$field->alias]=$field->id;
}
$itemfield = $item->fieldalias;
echo $user->fields[$userfield['authorinfo']]->value; ?>`
Would be great if it´s possible to call the fields in com_content, com_contact and the core modules with a simpler syntax. At least without the need to map it everywhere? Is this possible?
Thanks!
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-01-24 14:01:41 |
Closed_By | ⇒ | coolcat-creations |
thanks... i close it then ;)
You don't really have to do that. Just use
$item->fields[43]
when you know the id and all is good.