?
avatar coolcat-creations
coolcat-creations
24 Jan 2017

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!

avatar coolcat-creations coolcat-creations - open - 24 Jan 2017
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jan 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Jan 2017
avatar coolcat-creations coolcat-creations - edited - 24 Jan 2017
avatar laoneo
laoneo - comment - 24 Jan 2017

You don't really have to do that. Just use $item->fields[43] when you know the id and all is good.

avatar coolcat-creations coolcat-creations - change - 24 Jan 2017
The description was changed
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-01-24 14:01:41
Closed_By coolcat-creations
avatar coolcat-creations coolcat-creations - close - 24 Jan 2017
avatar coolcat-creations
coolcat-creations - comment - 24 Jan 2017

thanks... i close it then ;)

Add a Comment

Login with GitHub to post a comment