Hello everyone,
I would like to set a badge value on my menu entries. The value could be based on the number of result lines of an SQL query.
In the menu entry settings, I saw a parameter : Badge value.
I made a test with the value 2.

However, I don't know how to set this value based on a SQL query.
I saw, inspecting the HTML code that, a span class = "t-Button-badge" with content 2 is there for the badge. I could select the entry, and add this class via a JS code but I'm not sure it's the best method.
How would you do this ?