Hello team, I wanted to see how to add custom fields to the "nsp-gk5" module (https://ibb.co/DDqYrhm), I'm using Joomla 5 and I found these links:

https://www.gavick.com/forums/news-show-pro-gk5/custom-field-display-54167

https://www.joomlart.com/forums/d/43124-news-show-pro-custom-field

The idea is to be able to display the article title, image, and custom fields, like in a menu category (https://ibb.co/X3gWxqD). Any suggestions?

    vgutierrez2012 Hi

    Unfortunately, it doesn't support custom fields at this moment, I've forwarded to our GK team for further consideration on this feature.

    Regards

    Hi Saguaros, thank you for responding so quickly, now I have another question, is it possible to add custom fields to override the category articles module?

      Hi Saguaros, I have a group, with 7 custom fields, each one with its id, entering the article, from the editor I try to add them as these tutorials explain:

      https://www.joomla-monster.com/documentation/joomla-tutorials/custom-fields-in-joomla-3-7

      https://www.joomlashack.com/blog/tutorials/custom-fields/

      The only thing that needs to be added to the article is "{field 1}" but when updating it does not load field 1, will it be a problem with the Joomla version?

        vgutierrez2012 It seems to be Joomla issue as I tried to embed the same field to article with Joomla fresh installation + Cassiopeia template but it doesn't work.

        vgutierrez2012 The issue came from the setup for the article content, normally an article has intro text + full text separated by the readmore button. The above article doesn't have readmore button so template considers it as intro text so the field doesn't show there.

        I just updated this file: /templates/ja_purity_iv/html/com_content/article/default.php

        This line of code: <?php echo HTMLHelper::_('content.prepare', $this->item->text); ?>

        and the field is showing now, kindly check.

        Thanks Saguaros, everything works perfectly, in files "layout-1" and "layout-2" I changed on line 227.

        The code above that didn't show the custom fields:
        <?php echo HTMLHelper::('content.prepare', $this->item->fulltext); ?>
        I changed it to:
        <?php echo HTMLHelper::
        ('content.prepare', $this->item->text); ?>

        Now, the custom fields are displayed within the article, without problem.

          Write a Reply...
          You need to Login to view replies.