The icons used for a 3rd party extension dashboard titles are created from a language string.
There was an original issue opened for core (#26217) which got fixed by adding special threatment for core (#26252).
While that worked obviously, it's wrong from an architecture point of view and doesn't work for 3rd parties, which still would have to add CSS classes to a language string.
Also the code would only load a 3rd party provied string if the "dashboard" parameter has a section (eg com_foo.bar), which is wrong as well.
Icon is defined by the respective component by an XML definition or PHP code.
Component (content, menu, users, ...) specific stuff is hardcoded into com_cpanel.
I stumbled over this by reverse engineering the dashboard functionality so I could add that to my component.
In that view there is way to much special handling for core components which must be eliminated so it is easier for 3rd parties to figure out how something works (since there likely will be no documentation).
Labels |
Added:
?
|
Since Brian is a step further already, I'm closing this one in favor of his issue.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-02-02 12:12:51 |
Closed_By | ⇒ | Bakual |
@wilsonge Do you think this is a release blocker? Or even a beta blocker?