尝试让 Orchard 中的 Widget Layer Rule Provider 使用通配符
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
其中一位开发人员回复道:该错误已在开发人员分支中修复,并将在下一个版本中提供。
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