Dot Net Nuke 模块中多个控件的皮肤问题

发布于 2024-08-29 05:17:05 字数 171 浏览 2 评论 0原文

在我正在开发的 Dot Net Nuke 模块中,我需要将控件分成几个不同的区域。不幸的是,Dot Net Nuke 似乎认为由控制键识别的任何控件都是“编辑”屏幕,并会自动更改皮肤。

  • 是否可以通过编程方式改变这种行为?
  • 在不改变皮肤的情况下切换控件的最佳方法是什么?

In the Dot Net Nuke module that I'm developing I need to separate the controls into several different areas. Unfortunately, it appears that Dot Net Nuke thinks that any control identified by a control key is an 'edit' screen and changes the skin automatically.

  • Is it possible to change this behaviour programmatically?
  • What is the best method of switching controls without having the skin changed?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你曾走过我的故事 2024-09-05 05:17:05

这是一个人们很难理解和解决的话题。对于初学者,请参阅我的博客关于模块隔离的帖子

简而言之,只要您在 URL 中使用控制键来更改控件,您就会获得模块隔离(包括切换到编辑皮肤)。如果您不想要这种行为,则必须解决它。

有许多既定的技术,从简单的自己动手到更复杂的安排。在我的博文中,我向您指出 Michael Washington 的导航教程,其中包括使用PlaceHolder 并使用 MultiView 控制,或使用多个模块定义(这是一个完全不同的范例)。

This is a topic that folks have a lot of difficulty understanding and working around. For starters, see my blog post on module isolation.

The short story is that you'll get module isolation (which includes switching to the edit skin) whenever you use a control key in the URL to change controls. If you don't want that behavior, you'll have to work around it.

There are a number of established techniques, from simple do-it-yourself to more complex arrangements. In my blog post, I point you to Michael Washington's navigation tutorial, which includes using a PlaceHolder and loading controls dynamically into that, using a MultiView control, or using multiple module definitions (which is a whole other paradigm).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文