2013-11-20

Is it possible to use similar code in the K2 item description to display an extrafield value?

<?php echo $this->item->extraFields->alias->value ;?>

When I try using nonumber.nl Sourcerer in order to put PHP code in the K2 Item I get this error:

Fatal error: Using $this when not in object context in /home/goodwin/public_html/xjoomla/plugins/system/sourcerer/helper.php(552) : runtime-created function on line 7

Nonumbers support states that it didn't work because, "That's because $this->item-> is not known. Sourcerer doesn't magically create that variable for you. "

Please help me display extrafields using JCE in a K2 item description.

Show more