This project is read-only.

Mega2DNN Icon Not Shown

May 15, 2012 at 4:12 PM

When I use Mega2DNN template for the dnn:NAV control with the DNNMenuNavigationProvider provider, the icon I have specified for the page/link is not rendered next to the menu item.  

Another template I have tried does show the icon.  Is there a setting I can change to make sure that the icon appears?

May 15, 2012 at 11:30 PM
Edited May 15, 2012 at 11:48 PM

Resolved, add this to <a> tag where icon should appear in the .xslt file:

<img>

<xsl:attribute name="src">

<xsl:value-of select="@icon" />

</xsl:attribute>

</img>

Mar 12, 2015 at 10:52 AM
Hi Sir,

I am new to Dnn. I have the same issue. And I don't know how to create xsl file. please tell me where I need to put this <img> tag so that the image will be appeared.
Any help will be appreciated .

Thanks in advance
Mar 12, 2015 at 12:36 PM
Hi, you need to edit the Mega2DNN.xslt file and add the tag before the <xsl:value-of select="@text" /> (assuming you want to show the icon before the text).
Mar 14, 2015 at 11:15 AM
Thanks for quick reply sir.
                     After change in the Mega2DNN.xslt file the image is displayed. Now the problem is when I hover the mouse over the menu It display the SubMenu wrapper on the right hand side. when I increase the width of the wrapper it  also increases to the right hand side. How can I increase the width of the wrapper so that it displays from the first menu to the last menu in the navigation bar.