?
avatar brianteeman
brianteeman
2 Feb 2020

In the dashboards of joomla 4 we have a situation where sometimes there is an icon and sometimes not.

components dashboard - no icons

image

users dashboard - has icons

image

The reason for this is that the components dashboard is dynamically created while the others are statically defined (with an icon)

<menuitem
title="MOD_MENU_COM_USERS_FIELDS"
type="heading"
icon="user-tag"
class="class:users"

This can be resolved by updating the sql so that the params field in the menus table includes for example.
"menu_icon":"fa fa-puzzle-piece",

The alternate menu already uses this param
image

Thoughts? Backwards Compatibility issues? Extension issues?

avatar brianteeman brianteeman - open - 2 Feb 2020
avatar joomla-cms-bot joomla-cms-bot - change - 2 Feb 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Feb 2020
avatar Bakual
Bakual - comment - 2 Feb 2020

I guess that works, and if it's in the SQL, then we can also remove the hardcoding.

Just needs also a way for 3rd party to populate those menu params, which currently imho doesn't work. But that should be doable I guess.

avatar brianteeman
brianteeman - comment - 2 Feb 2020

I have the icons working now - will submit the pr after the rugby ;)

avatar brianteeman
brianteeman - comment - 2 Feb 2020
avatar brianteeman brianteeman - close - 2 Feb 2020
avatar brianteeman brianteeman - change - 2 Feb 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-02-02 17:09:03
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment