问题标签 [orchardcms]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
html - 果园 CMS - 主题
我有一些关于主题 Orchard CMS 的问题。所以,让我们开始吧……我有一个网站,它有 5 个页面,其中一些页面有不同的布局。
其中的页面和区域:
主页- 内容、TripelFirst、TripelSecond、TripelThird
概念和租赁页面 - 内容、AsideFirst、AsideSecond
新闻和服务部门页面 - 内容、AsideFirst、AsideSecond(与前两页不同的布局)
注意:即使所有页面都有内容区域,除了主页没有任何页面使用它。其他页面只有位于其中一个区域的 HTML 小部件。
1)我读过可以为特定ID创建布局,问题是我找不到该ID来为特定ID创建布局。
2)如您所见,几个页面具有相同的布局,如何将它们分配给特定的布局?例如,如果我为概念和租赁页面创建布局,如何将特定布局分配给它们,以及如何将布局分配给新闻和服务部门页面?
3)如何将class标签添加到body中?问题是 Orchard CMS 在其他所有内容之前创建正文,因此它不包含在布局 cshtml 文件中。
先感谢您!
asp.net - OrchardCMS 中的模块多实例
假设我有一个管理联系人的联系人果园模块
我可以有两个这样的实例吗
mysite.com/WorkContacts/...
mySite.com/HomeContacts/....
并按实例/位置类型等对数据进行分区。
我认为应该是,但在我深入挖掘之前想确定一下
.net - Orchard 中最近博客帖子的自定义视图
我已经搜索并尝试了 2 天来更改显示在我的主页上的 RecentBlogPosts 内容类型的视图。我想显示帖子中的标题和短语。
我设法找到了一个显示每个帖子标题的视图,但我还没有弄清楚模型中其他部分的名称或如何提取文本。
帮助将不胜感激!
上面的代码(主要)来自Bertrand Le Roy的博客,对此我表示感谢。
silverlight - 如何将 silverlight 应用程序添加到 Orchard CMS
如何基于 Orchard CMS 将 silverlight 应用程序添加到站点
asp.net - 是果园还是 Umbraco MVC?
我对通过 Web 表单使用 MVC 获得的输出质量感到非常满意:手工制作的 HTML 没有充满额外的机器生成的 gubbins(礼貌用语)。我当然意识到 MVC 远不止于此,但只专注于“视图”部分......
我正在寻找 Orchard 或 Umbraco 的项目。我看到两者都支持 Razor 语法(Umbraco 差不多)——但由于我强烈倾向于 MVC 视图而不是 web 表单,这是否排除了 Umbraco?
到目前为止,我发现的所有 Umbraco 读物都是关于 XSLT 引擎的,因为剃刀语法是全新的,这让我害怕 :-)
.net - 无法将 Orchard ContentPart 与 ntext 列一起使用
我在 sql ce 数据库中为我的内容部分“CourseDescription”创建了一个表。“教学大纲”列使用 ntext 作为其类型。但是,当我尝试创建 CourseDescription 时,出现以下异常:
我怎样才能解决这个问题?
c# - 果园模块库报告错误
我已经安装了几个 OrchardProject.net 实例,并且在尝试浏览模块库时它们都报告了错误。
从库源“果园扩展库”加载扩展时出错。属性“已发布”的空值不能分配给类型“System.DateTime”。
重现步骤: 1. 转到管理员 2. 单击图库/模块
orchardcms - 如何在果园中使用 autofac container.Resolve<>
我知道 autofac 的最佳实践是尽可能使用构造函数注入,而 orchard 也这样做了。使用全局容器不是一个好主意,但我只想知道有没有办法在果园中使用 container.Resolve<> 或者如何在果园中获取组件?
是的,我知道在果园中我们可以使用 IDependency,但是在 Web 服务、视图等中时……我怎样才能获得容器之类的组件。解决我可以在哪里获得容器的问题。
.net - 果园和脸书
对于某些模块,我需要使用 Facebook XDReceiver.htm,并在模块中使用它。
这个文件的最佳位置是什么?
我可以把它放在我模块的某个文件夹中吗?
谢谢。
multi-tenant - Orchard Multi-tenant theme not enabled
When trying to change to a theme installed by the parent of the tenant website in Orchard, it is not possible to change or preview the theme.
In the parent website, the theme shows as enabled (it can only be disabled), it previews correctly and can be switched to etc but in the tenant website, it is not possible to do either of these and it appears to be disabled (the "enable" link is shown).
So in the tenant website when you click preview on an installed theme in the themes admin section, you just get a 404 - request not found for /Admin/Themes/Preview/
Machine specifics: Orchard v.1.1.30.0 (zip file installation pointed to in IIS) on IIS7.5, windows7, using hosts file entries to fake the domain names.
Any ideas?