Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • ekoster Friend
    #204448

    Hi all. I have managed to tweak the template a bit to have a new type for the carousel at the top right corner. It shows upcoming events in my own layout.

    For this layout, I wanted some new fields too. So I have made them as described in the documentation. So far so good. One of them is a droplist. I managed to place values in the two files:
    – en-gb.plg_system_jacontenttype.ini (within the plugins directory)
    – en-gb.plg_system_jacontenttype.ini (within the administrator directory)

    I found these files by reverse lookup through the code.

    The values added:
    PLG_JACONTENT_TYPE_ETB_THINKING=”Deciding”
    PLG_JACONTENT_TYPE_ETB_GOING=”Going”
    PLG_JACONTENT_TYPE_ETB_NOTGOING=”Not going”
    PLG_JACONTENT_TYPE_ETB_WENT=”Went”

    Now my droplist is populated with these values, and the the frontend show the right one too.

    Question:
    What way should I go to get a translation in the front end? See the site: Remove for solved at top right. There is a little green ‘box’ with a value.

    ekoster Friend
    #562127

    I figured it out. I saw it wasn’t even displaying the ‘readable’ value like ‘Not going’ but the database value ‘notgoing’. So what I did was make new entries in the en-GB.tpl_ja_teline_v.ini file and the dutch ones. Then in my php layout I do this:
    [PHP]<?php echo JText::_(‘ETB_EVENT_STATUS_’ . $item->params->get(‘ctm_etb_status’,”)); ?>[/PHP]

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 1 voice, and was last updated by  ekoster 9 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum