How to add a category in the search result (default_article.php), as in the attached image?
Custom Fields
Joomla! version (x.y.z) | 4.3.2 |
Extension Version (x.y.z) | 1.9.1 |
How to add a category in the search result (default_article.php), as in the attached image?
Custom Fields
Joomla! version (x.y.z) | 4.3.2 |
Extension Version (x.y.z) | 1.9.1 |
Hi
Unfortunateley the layouts modification is beyond the scope of our support.
Though we have several blog posts in our blog about how to customize the Smart Search/JFilters results, which can possibly give you some hints.
Kind regards,
Sakis Terzis
Founder and Lead Developer
If someone still needs it, add to default_article.php, just replace the class.
-----------------------------------------------------------------------
<?php if ($this->result->route) : ?>
<?php echo HTMLHelper::link(
Route::_($this->result->route),
'<span class="kategorija_pretraga">' . $icon . $this->result->category . '</span>' . $show_url,
[
'class' => 'kategorija_pretraga'
]
); ?>
<?php else : ?>
<?php echo $this->result->category; ?>
<?php endif; ?>
---------------------------------------------------------------------------------------
Regards
Thanks!
It could be really useful.
Kind regards,
Sakis Terzis
Founder and Lead Developer