尝试让 Orchard 中的 Widget Layer Rule Provider 使用通配符

发布于 2024-09-30 13:53:57 字数 455 浏览 0 评论 0原文

我正在使用 Orchard CMS v0.8,并尝试为网站中的特定图层设置图层规则。这可以通过查看数据库中的“Orchard_Widgets_LayerPartRecord”表来完成。

有一个字段,您可以指定它们的图层规则是什么,这很棒。然而,我在让它与通配符匹配时遇到了一些麻烦。

例如:我希望图层规则为 url“~/admin/*”,以便与此 url 匹配的所有页面都将具有该图层。

我检查了底层代码,看起来它应该匹配,但事实并非如此。有人有什么想法吗?

我看过这篇博客文章,它很棒,但在这种情况下没有帮助。 Bertrand Le Roy 的博客

提前致谢。

I am working with Orchard CMS v0.8 and am trying to set the layer rule for a particular layer in a website. This can be done by looking at the "Orchard_Widgets_LayerPartRecord" table in the database.

There is a field whereby you can specify what they layer rule is which is great. However I am having a little trouble with getting it to match on a wildcard.

For example: I would want a layer rule to be url "~/admin/*" so that all pages that matched this url would have the layer.

I checked the underlying code and it appears that it should match however it does not. Anyone have any ideas?

I have had a look at this blog article which is great but it doesn't help in this situation. Bertrand Le Roy's blog.

Thanks in advance.

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

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

发布评论

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

评论(1

冷血 2024-10-07 13:53:57

其中一位开发人员回复道:该错误已在开发人员分支中修复,并将在下一个版本中提供。

http://orchard.codeplex.com/workitem/16711

One of the developers replied with: This bug has been fixed in the developer branch and will be available in the next release.

http://orchard.codeplex.com/workitem/16711

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