joomla-extensions / weblinks

This repo is meant to hold the decoupled com_weblinks component and related code.
GNU General Public License v2.0
45 stars 88 forks source link

unable to hide filters #469

Closed blondie63 closed 2 years ago

blondie63 commented 2 years ago

Steps to reproduce the issue

I'm using last 4.0 here: https://dolcevita.bar/it/menu

Expected result

weblinks-filter-bug

System information (as much as possible)

JM 4.0.3 Weblinks 4.0

blondie63 commented 2 years ago

I'm also unable to add/change left icon or add an image for each link

joomdonation commented 2 years ago

@blondie63

There was a typo and it was fixed on this commit https://github.com/joomla-extensions/weblinks/commit/27d8fdc7ce874b202742462130f5e4452dc039ab

You can update your site to the attached package of weblinks pkg-weblinks-4.0.0.zip , then you should be able to hide that filter by editing the menu item, set Filter Field parameter to Hide (see attached screenshot)

menu_item_params

For changing the icon, access to weblinks component, then press Options in the toolbar and select the icon you want (see the screenshot)

weblin_icon

You can choose up to two images for each weblinks. Not sure what's the problem when you trying to select images for weblink?

blondie63 commented 2 years ago

ok i've updated with zip you added here, going to menu item and saving setting over, now filter row disappear! But there are still some problems:

  1. i set field "Text/Icon/Web Link Only" = Web Link Only but a left icon still appear
  2. i'd like to have different icon for each Link so i set one image on link "Carta dei Vini" and set First Image Float = Left but no image appear -> https://dolcevita.bar/it/menu // this is my idea: https://dolcevita.bar/it/m2
joomdonation commented 2 years ago

@blondie63

  1. Confirm the isssue. Ping @chmst for looking at this since she worked in the layout part
  2. We do not support different icon for each Link. For the First Image, it will only be displayed if there is Description for weblink. Without description, it won't be displayed (I don't know the reason, but it has been working like that before, same with Joomla 3)

For your need, I guess you will have to implement a layout override. So:

The layout file to override is components/com_weblinks/tmpl/category/default_items.php

joomdonation commented 2 years ago

The issue with icon of weblink is fixed with this commit https://github.com/joomla-extensions/weblinks/commit/56d3984ece9c9399d0212590a7564f8f777d6572 . So all problems reported in this issue were fixed. I'm closing the issue.