We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. dilby
  2. General Discussion
  3. Thursday, 09 October 2014
  4.  Subscribe via email
Hi -

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!
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Dilby,

To show the extra fields in modules, please create override folder for the module (templates/t3_bs3_blank/html/mod_articles_category/defaul.php) the call the extea field in the default.php file.

Tell me if you have any further concern.

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.