Hi @all,
the Filter Plugin has a Bug if the categories have icons.
See filter-test on your Demo-Page:
https://www.screencast.com/t/bXV6SohoxKp
best regards
Sakis
Hi @all,
the Filter Plugin has a Bug if the categories have icons.
See filter-test on your Demo-Page:
https://www.screencast.com/t/bXV6SohoxKp
best regards
Sakis
Hello,
You should go to ftp > templates > your template > tpl > blocks > categories.tpl > remove {rlHook name='tplPreCategory'}
Hi @all,
@Rudi, if I remove that, the image will no longer appear in the Categry collection. that alright.
But in the filter plugin, the image is still displayed, which is ok.
The error is that the link is not set up correctly.
Ex.
the text Abarth has the link: https: //www.xyz.xz/autos/search-results/category-id: 317 /
Result: Filters the results
the picture has the link: https://www.xyz.xz/autos/abarth/
Result: jumps into the category and the user is confused.
This error exists in the Filterplugin or categories_icons plugin on your Demoside and of course on my side.
filter_cat_bug.PNG
best regards
Sakis
Last edited by Athanasios Christou; November 3, 2018 at 10:14 AM.
Hi,
i found a solution!
in /plugins/categoryFilter/fields/categories.tpl
in Line 128 : commented out or delete {*rlHook name='tplPreCategory'*}
after Line 170 before <a title="{if $lang[$cat.pTitle]}{$lang[$cat.pTitle]} .... , i put code from icon plugin and change the Link-URL :
<!-- snipsel from icon plugin -->
{if $cat.Icon && ($config.categories_icons_position == 'left' || $config.categories_icons_position == 'top')}
{if $config.rl_version|version_compare:"4.4.0" >= 0}
{assign var='lt_tmp' value=$listing_types[$cat.Type]}
{else}
{if isset($listing_types.$type)}
{assign var='lt_tmp' value=$listing_types.$type}
{else}
{assign var='lt_tmp' value=$listing_type}
{/if}
{/if}
{assign var='lt_page_path' value='lt_'|cat:$lt_tmp.Key}
<div style="{if $config.categories_icons_position == 'left'}display: inline;{else}display: block;{/if}">
<a class="category cat_icon" title="{$cat.name}" href="{$cfCategoryUrl}">
<img src="{$smarty.const.RL_URL_HOME}files/{$cat.Icon}" title="{$cat.name}" alt="{$cat.name}" />
</a>
</div>
{/if}
<!-- end snipsel from icon plugin -->
it works for me !
Best Regards
Sakis
Hi,
Is it just me or the filter plugin do not show category icons from category icon plugin no more. I just add some icons and it not showing. I remember it works before
Hello,
It doesn't support category icons
In fact, category icons plugin is for category box not Filter plugin: Listings > Listing Types > edit > Additional Category Box