I've added an extra field ('location') to my articles via the recommended t3 method (see below), and am wondering how to show this extra field in the 'mod_articles_category' module.
I've used this code in the articles:
<?php
$attribs = new JRegistry($this->item->attribs);
// get extra fields
$attribs->get('job-location');
?>
and...
<?php if ($attribs->get('job-location')) : ?>
<p class="item-state state-<?php echo $attribs->get('job-location') ?>">
<?php echo $attribs->get('job-location') ?>
</p>
<?php endif ?>
But how to call the function and display within a module?
Thanks!