Loading...
 
Skip to main content

Categories displayed in a category module or a plugin List in a menu is adding a lot of empty lines and empty spans

Status
Open
Subject
Categories displayed in a category module or a plugin List in a menu is adding a lot of empty lines and empty spans
Version
22.x
Category
  • Usability
Feature
Category
Menu
Modules
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

You can use a category module or a plugin List in a Tiki menu to display a list of items (link to a category page) for each sub category.

For exemple:

Copy to clipboard
{module module="categories" nobox="y" decoration="0" type="trackerItem" selflink="y" hideEmpty="y" onlyChildren="y" categId="23"}

Copy to clipboard
{LIST(searchable_only="0")} {list max="500"} {filter deepcategories="1"} {filter type=category} {LIST}


However this adds a bunch of empty link that push down the menu items:
Image

It also add an empty span for each items after the first child:
Image

Instance created here : http://bsfez-11581-7674.show2.tikiwiki.org

Workaround

Using CSS to hide extra empty lines and span added (in my case module 6 is the user menu):

Copy to clipboard
/////// Hidding empty link line #module_6 .dropdown.show ul.dropdown-menu.show li a.dropdown-item[href=""] { display: none; } ////// Hidding empty span #module_6 .dropdown.show ul.dropdown-menu span:empty { display: none; }
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7671
Created
Sunday 07 February, 2021 10:26:24 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Wednesday 10 February, 2021 07:38:20 UTC


Show PHP error messages