By Philippe on Monday, 07 May 2018
Posted in Technical Issues
Likes 0
Views 491
Votes 0
Hello,

How to increase number of words in search result ?
See capture in attachment.

Thank you,
Philippe
Hi there,

We have hardcoded it to shown only 20 characters as you can see on this files .../components/com_easysocial/themes/wireframe/search/mini/item.php

If you wanted to customizes them, you can increase those number on codes below.

[gist type="php"]
<span class="es-search-mini-result-name">

<?php if (JString::strlen($item->title) > 20) { ?>
//change those number accordingly
<?php echo JString::substr($item->title, 0, 20); ?> <?php echo JText::_('COM_EASYSOCIAL_ELLIPSES'); ?>
<?php } else { ?>
<?php echo $item->title; ?>
<?php } ?>
</span>
[/gist]
·
Monday, 07 May 2018 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much !
It works great

Philippe
·
Monday, 07 May 2018 15:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Monday, 07 May 2018 15:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post