Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • tjfriis Friend

    I need to change the xLayout link text in JA Healthcare from "View Service" to my own text when chosing xLayout as a menu item.
    How is this done, please?
    If in coding, please define which file in specifics to look for to find the coding.
    Thank you

    1. Screen-Shot-2018-02-08-at-12.57.45
    Saguaros Moderator


    It’s readmore text for article in service layout, it’s declared in this file: root/templates/ja_healthcare/html/com_content/category/service_item.php

    <section class="readmore">
      <a class="btn btn-default" href="<?php echo $link; ?>">
        <?php if (!$params->get('access-view')) :
          echo JText::_('TPL_SERVICE_REGISTER_TO_READ_MORE');
        elseif ($readmore = $this->item->alternative_readmore) :
          echo $readmore;
          if ($params->get('show_readmore_title', 0) != 0) :
            echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
        elseif ($params->get('show_readmore_title', 0) == 0) :
          echo JText::sprintf('TPL_SERVICE_READ_MORE_TITLE');
        else :
          echo JText::_('TPL_SERVICE_READ_MORE');
          echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
        endif; ?>

    To translate to another text, you can open the language file of this template. For example in English, go to file: root/language/en-GB/en-GB.tpl_ja_healthcare.ini

    Look for this text string:

    ; CUSTOM
    TPL_DOCTOR = "Doctor"
    TPL_SERVICE_READ_MORE = "View Service"
    TPL_SERVICE_REGISTER_TO_READ_MORE = "Register to View Service"
    JAK2FILTER_STARS = "Stars"

    and translate to your own text.

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

This topic contains 1 reply, has 2 voices, and was last updated by  Saguaros 2 years, 6 months ago.

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