dotnetnuke dnnLEFTMENU 未显示在自定义皮肤中
我正在开发自己的 dotNetNuke 皮肤,并且正在尝试向我的皮肤添加 dnnLEFTNAV。然而,我很难让它出现在皮肤本身中。这就是我在 .html 皮肤中的调用如下所示:
<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>
上传皮肤时,.html 会转换为 .ascx,并且 incovation 最终看起来像这样:
<dnn:LEFTMENU runat="server" id="dnnLEFTMENU" Width="165px" ShowOnlyCurrent="RootItem" MaxLevel="2" EnableEmbeddedSkins="false" Skin="MinimalExtropy" />
还有一个标头:
<%@ Register TagPrefix="dnn" TagName="LEFTMENU" Src="~/Admin/Skins/LeftMenu.ascx" %>
但是,当我查看已完成的内容时页面上,LEFTNAV 应该在的地方绝对没有任何东西。
更奇怪的是,我基本上从最小熵皮肤中逐字提取了这段代码,并且具有最小熵皮肤的测试页面的导航按预期显示。
有什么想法吗?
I'm working on my own dotNetNuke skin, and I'm trying to add a dnnLEFTNAV to my skin. However, I'm having trouble getting it to show up in the skin itself. This is what my invocation in my .html skin looks like:
<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>
When the skin is uploaded, the .html is converted to .ascx, and the incovation ends up looking like this:
<dnn:LEFTMENU runat="server" id="dnnLEFTMENU" Width="165px" ShowOnlyCurrent="RootItem" MaxLevel="2" EnableEmbeddedSkins="false" Skin="MinimalExtropy" />
There's also a header:
<%@ Register TagPrefix="dnn" TagName="LEFTMENU" Src="~/Admin/Skins/LeftMenu.ascx" %>
However, when I look at the completed page, there is absolutely nothing where the LEFTNAV should be.
What makes this even odder is that I essentially pulled this code verbatim out of the Minimal Entropy skin, and a test page with the Minimal Entropy skin has the nav showing up as expected.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
天啊我的脸都红了。我使用 LEFTMENU 的页面没有子菜单...我希望它包含相同级别的项目或至少包含空导航的外壳,但显然不是。
PBKAC
Oh boy is my face red. The page I was using the LEFTMENU on had no child menus...I was expecting it to include same-level items or at least the shell of an empty navigation but apparently not.
PBKAC