dnnLEFTMENU doesn't show up in Skin
Last Post 12/30/2010 9:10 AM by Joseph Craig. 5 Replies.
Author Messages
AlexMax
Nuker
Nuker
Posts:11


--
12/29/2010 9:26 AM  
I'm having a skin issue with dnnLEFTMENU. I'm trying to put dnnLEFTMENU into a skin template, and to this end I copy-pasted the dnnLEFTMENU object HTML out of Minimal Entropy. After packing and uploading the skin, I check the .ascx file associated with the skin that the uploader generates, and it seems to have generated the tag correctly. However, when I look at the page itself, the place where I would expect to see the dnnLEFTMENU is completely blank.

What's going on here? The code I've used is as follows, copied straight out of Minimal Entropy's skin:

<object id="dnnLEFTMENU" codetype="dotnetnuke/server" codebase="LEFTMENU">
    <param name="Width" value="165px" />
    <param name="ShowOnlyCurrent" value="RootItem" />
    <param name="MaxLevel" value="2" />
    <param name="EnableEmbeddedSkins" value="false" />
    <param name="Skin" value="MinimalExtropy" />
object>
I have also tried removing the "Skin" param to no avail.
Joseph Craig
DNN MVP
Posts:11667


--
12/29/2010 10:07 AM  
It would be helpful to see what shows up in the ascx file. That is the one that really counts. Could you attach that file to a reply?

Joe Craig, Patapsco Research Group
Complete DNN Support
Joseph Craig
DNN MVP
Posts:11667


--
12/29/2010 10:13 AM  
Some more:  There isn't good documentation on this skin object, and it appears that is fairly new.  It is a wrapper for a Telerik control.

You can find the code for this object in the admin\skins directory.  If you understand VB, you can study the .vb file to see what's going on with the properties.

The "skin" property is passed to a similar property of the Telerik object, so you might look at Telerik's documentation for details, assuming that you want to do that sort of thing.

Joe Craig, Patapsco Research Group
Complete DNN Support
AlexMax
Nuker
Nuker
Posts:11


--
12/29/2010 10:27 AM  
Posted By Joseph Craig on 29 Dec 2010 10:07 AM
It would be helpful to see what shows up in the ascx file. That is the one that really counts. Could you attach that file to a reply?


This is what is generated in the header:
<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LEFTMENU" Src="~/Admin/Skins/LeftMenu.ascx" %>
This is what is generated at the place where the object tag was:
<dnn:LEFTMENU runat="server" id="dnnLEFTMENU"  Width="165px" ShowOnlyCurrent="RootItem" MaxLevel="2" EnableEmbeddedSkins="false" Skin="MinimalExtropy" />
Posted By Joseph Craig on 29 Dec 2010 10:13 AM
Some more:  There isn't good documentation on this skin object, and it appears that is fairly new.  It is a wrapper for a Telerik control.

You can find the code for this object in the admin\skins directory.  If you understand VB, you can study the .vb file to see what's going on with the properties.

The "skin" property is passed to a similar property of the Telerik object, so you might look at Telerik's documentation for details, assuming that you want to do that sort of thing.


Yes, but shouldn't copy-pasting the object out of Minimal Entropy just...work? At this point, I'm just trying to get the control to show up at all, after all it already appears just fine in the Minimal Entropy Left Menu skins.
AlexMax
Nuker
Nuker
Posts:11


--
12/30/2010 9:09 AM  
Just letting you know that it was a stupid issue...the pages I was testing it on had no subpages. I had expected that at least SOMETHING would show up (perhaps the current level pages or at least an empty box). Whoops.



Thanks for your time.
Joseph Craig
DNN MVP
Posts:11667


--
12/30/2010 9:10 AM  
Cool.  That makes perfect sense!

Happy New Year!

Joe Craig, Patapsco Research Group
Complete DNN Support


---