I have my own DNN7 skin based on Twitter Bootstrap 3, which utilizes a DDRMenu. I would like to have a glyphicon
next to some of my submenu items, like this:
The image is a mockup using just the default Twitter Bootstrap .navbar-fixed-top
. A single submenu item looks like this:
<li>
<a href="/">
<span class="glyphicon glyphicon-home"></span>
My sub page 1
</a>
</li>
My skin is using the "ULTokens.txt" method for creating a DDRMenu. A typical submenu node looks like this at the moment:
[>NODE]
<li class="item[?FIRST] first[/?][?LAST] last[/?][?SELECTED] active[/?][?NODE] haschild[/?]">
[?ENABLED]
<a href="[=URL]"><span class="glyphicon-none"></span> [=TEXT]</a>
[?ELSE]
<a><span class="glyphicon-none"></span> [=TEXT]</a>
[/?]
</li>
[?NODE]
<span style="margin-left: 10px;"></span>
[*>NODE]
[/?]
[/>]
Now I know I can use the [=ICON]
token to place an icon, which seems to be the preferred approach. However, the screen for adding an icon to a page is like this:
or
In short, we can only use image files. Instead I want to use a glyphicon
.
It seems my only real option is to create a PNG from the appropriate glyphicons and select them as an image for pages. The only "non-option" for sticking with glyphicons that I currently see is to use Javascript to inject them into the menu run time, but I feel dirty for even only suggesting that.
Short of creating my own menu provider and abovementioned workarounds, is there any easy way to use glyphicons for menu items?