By Jozsef Simony on Tuesday, 09 May 2017
Posted in Technical Issues
Likes 0
Views 325
Votes 0
Dear All,

Is it possible to change (the extremely short) length of results text in the search module even with an override?


Thanks in advance!
Hi there,

Yes it is. You can do template override on this path /.../templates/*current_template/html/com_easysocial/search/mini/item.php on this file .../components/com_easysocial/themes/wireframe/search/mini/item.php and change it codes accordingly.


//check if original string have > 20, it will truncate to < 20 string
<?php if (JString::strlen($item->title) > 20) { ?>
<?php echo JString::substr($item->title, 0, 20); ?> <?php echo JText::_('COM_EASYSOCIAL_ELLIPSES'); ?>


Please give it a try and see how it goes
·
Tuesday, 09 May 2017 18:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Abdul,

It works well. This piece of info was very useful!
·
Thursday, 11 May 2017 12:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.
·
Thursday, 11 May 2017 12:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post