Where can I change an extra field name? This seems not possible. Why?
also I want to add some extra field. Where can I do this?

    Hi guzzelmo

    It's defined in this file: root/templates/ja_sport/etc/extrafields/team.xml

    and this PHP file will help to render value for these extra fields:

    root/templates/ja_sport/html/com_content/article/team.php

    Regards

      saguaros thanks!
      Thank you. In case of update could I lose the changes Modifying these two files?

      Hi @guzzelmo

      To avoid losing files during an update, you can follow these steps:

      • First, create a new XML file (e.g., team-2.xml), in the root directory /templates/ja_sport/etc/extrafields/ .
      • Then, move the file located at root /templates/ja_sport/html/com_content/article/team.php to the root directory/templates/ja_sport/local/html/com_content/article/.

      Regards,

      5 days later

      guzzelmo What you mean by not enough here?

      Which file you want to change as well?

      I tried renaming some extra fields. Also I tried to add a new one. Neither solution works. Indeed, to go back I had to do a backup restore

        guzzelmo Which field and how you want to change? you can share the details and the login credentials of your site eg: URL + super admin account so I can check directly for you.

          14 days later
          This message is visible to Moderators only
          hidden content
          This message is visible to Moderators only
          hidden content

          I just updated 2 files (as we mentioned above)

          root/templates/ja_sport/etc/extrafields/team.xml
          root/templates/ja_sport/html/com_content/article/team.php

          in which I changed the team_nationality to team_color

          and you can see the change in article page now: index.php/team/17-percorsi-dati/78-vk-korrasi

          teamxml.zip
          957B
          teamphp.zip
          3kB

          P/s: you may need to override the new language constant as well: TPL_COLOR

            This message is visible to Moderators only
            hidden content

              But in the home page the same extra fields are not visible in the "percorsi" module. Why?

                guzzelmo That section belongs to Articles Category module, with new extra fields, you need to customize the same to render values for these extra fields.

                You can customize this PHP file: /templates/ja_sport/html/mod_articles_category/player-2.php

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