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
- 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:
It also add an empty span for each items after the first child:
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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- 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