Hi,
I tried a simple joomla over ride in order to crate constant introtext truncate' but instead of getting it done' nothing happens and it damages category blog css (blocking custom css changes)
I'm using:
<?php echo JHtml::_('string.truncate', $this->item->introtext, 150); ?>
in order to create auto truncating of intro text

    eladmarmor
    Another thing, when i create override for com-content from backend it jams css, actually before i make changes

      eladmarmor

      Hi,

      May I know which JA template are you using? and which file did you edit as you mentioned?

      If possible, you can share the credentials of your site : admin + FTP account so I can take a look: https://cl.ly/3y3R0p24250G

      Hi,
      I used plain T3 BS3 blank and modified it slightly.
      I'm trying to create override on joomla's blog_item.php in order to truncate intro text automatically.
      Last i checked, immidiatly after i created through joomla category override it disabled my custom.css.
      When i changed :
      <?php echo $this->item->introtext; ?>
      to
      <?php echo JHtml::_('string.truncate', $this->item->introtext, 150); ?>
      it crushed the website.

        eladmarmor
        Hi,

        I checked in the template override of category but did not see the blog_item.php file there: /templates/t3_bs3_blank/html/com_content/category

        I tried to use your above change at my side and it works normally.

        Or you can use this one:

        <?php echo JHtmlString::truncate(strip_tags($this->item->introtext), 150); ?>

        This will affect the introtext display of article only, it doesn't relate to custom.css as you mentioned.

        Kindly check again.

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