By Groupe Média Théapolis on Thursday, 25 May 2017
Posted in Technical Issues
Replies 6
Likes 0
Views 399
Votes 0
Hello

How or what file to modify to add
> The date of publication,
> The image,
> The category,
> The title
Joomla articles in the EasySocial Multilingual Search Results list

best regard

Attached images
Hi there,

You can do customization on this file at this path .../components/com_easysocial/themes/wireframe/search/default/types/other.php and i would advice you to do template override on this as follow https://stackideas.com/docs/easysocial/administrators/templating/template-overrides as this changes will be overwritten once you have made any update/upgrade on your Easysocial if you didnt do template override.

Please give it a try and see how it goes
·
Thursday, 25 May 2017 10:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Thank you for your reply.

But I can not figure out the few lines of code to display
The image and the title of the joomla article.
I would be grateful if you could indicate the two or three lines of code that are needed for this,

best regard





<?php
/**
* @package EasySocial
* @copyright Copyright (C) 2010 - 2016 Stack Ideas Sdn Bhd. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* EasySocial is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Unauthorized Access');
?>
<div class="o-grid__cell">
<div class="o-flag">
<div class="o-flag__image o-flag--top">
<a href="<?php echo JRoute::_($item->link); ?>" class="o-avatar">
<img src="<?php echo $item->image; ?>" title="<?php echo $this->html('string.escape', strip_tags($item->title)); ?>" />
</a>
</div>
<div class="o-flag__body">
<a href="<?php echo JRoute::_($item->link);?>" class="es-search-group__item-title">
<?php echo $item->title; ?>
</a>

<ul class="g-list-inline g-list-inline--dashed t-text--muted">
<li>
<i class="fa fa-search"></i> <?php echo $item->groupTitle;?>
</li>
</ul>

</div>
</div>
</div>
·
Thursday, 25 May 2017 17:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Please to codes below and hope this helps.

//this code are used to show those images
<a href="<?php echo JRoute::_($item->link); ?>" class="o-avatar">
<img src="<?php echo $item->image; ?>" title="<?php echo $this->html('string.escape', strip_tags($item->title)); ?>" />
</a>

//this code are used to show those titles
<li>
<i class="fa fa-search"></i> <?php echo $item->groupTitle;?>
</li>


Please advice.
·
Thursday, 25 May 2017 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Oups !

This is the problem, this code does not display the title of the article but the intro. The title (Href) is not displayed!

Regards
·
Thursday, 25 May 2017 17:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Oh, ya i just noticed that

I have created ticket internally and this will be included on our next release version. Thanks for your understanding
·
Thursday, 25 May 2017 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post