Hi,
Whilst working through a v12 to v13 upgrade, I noticed that the LiveData table did not have sort icons or the “More Actions” menu icon. I have a custom Icon Theme which appears to be working for everything else but on the Live Data table, instead of the xwiki.iconset.render.html
or xwiki.iconset.render.wiki
(sorry, not sure which one is actually used in this scenario) content being injected, the result is just an empty <img>
element.
I.e.
<a title="More Actions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" role="button" class="btn btn-default dropdown-toggle">
<img>
</a>
I can see in the browser network trace that for all the working icons, the browser is going to a URL for each icon; whereas, for the live data table it looks like it’s using the REST API to search for the details for a given icon. The REST API is returning:
{"icons":[{"name":"list-bullets","iconSetType":"IMAGE","iconSetName":"AlexIcons","cssClass":null,"url":null}],"missingIcons":[]}
I could imagine that because of the null URL property, and the iconSetType
being IMAGE that it might result in the empty <img>
tag that I see in the HTML above but maybe that’s a bad guess.
In the XML for the Icon theme/set extension, the type
property is set to font
and there is a mapping for list-bullets
. Also, the Icon theme has HTML in the xwiki.iconset.render.*
properties so I guess I would expect to see that HTML in the livedata table, even if the URL was wrong/not-working instead of the <img>
tag.
I have found this Jira Issue but nothing jumps out at me but I’ll go through it again just in case: [XWIKI-18605] Live Data macro doesn't use the configured Icon Theme - XWiki.org JIRA
I’ll try to do some digging in the REST API implementation that the livedata table uses but any advice/help would be welcomed.
Thanks in advance!
Cheers,
Alex