多个父母在 umbraco 中提供文件
我需要能够:
- 将一个新闻项目连接到多个新闻项目组。
- 此外,每组中项目的顺序也很重要,内容编辑者需要能够随时更改顺序。
所以基本上我正在寻找的是这样的结构:
- 新闻组 1
- 新闻项 1
- 新闻 2
- 新闻 3
- 新闻组 2
- 新闻 6
- 新闻5
- 新闻项 1
我已经研究过关系,但似乎不可能影响顺序。
此外,最好可以通过默认的 umbraco 排序 功能来编辑顺序(右键单击内容树,然后选择排序)。
所以我认为最简单的方法是如果我可以有多个父母来处理一份文件,但我不确定如何做到这一点。
I need to be able to:
- connect one news item to multiple news items groups.
- Additionally to that the order of the items in each group is important and the content editors need to be able to change the order at any time.
SO basically what I'm looking for is a structure like this:
- News group 1
- News item 1
- News item 2
- News item 3
- News group 2
- News item 6
- News item 5
- News item 1
I have already looked into relations, but it seems that its not possible to influence the order.
Also editing the order should preferably be possible through the default umbraco sort functionality (Right click in the content tree and then select sort).
So I think the easiest way would be if I can have multiple parents for a document, but I'm not sure on how to do that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我过去通过创建一个“参考”文档类型来完成此操作,该文档类型仅指向我要复制的内容项。通常,引用类型有自己的模板,但可以通过添加属性“IsReference”来使用相同的宏。然后我编辑宏来检查 IsReference,如果它是引用,我将获取引用内容项,如果不是,则获取 currentPage。
我意识到这并不完全是您正在寻找的内容,但它允许您进行所有您想要的排序,并且从技术上讲,内容仍然只在一个地方。
正如我所知道的,在 Umbraco 中不可能有多个父母。
I've done this in the past by creating a "reference" Document Type that simply points to the content item that I want to copy. Generally, the reference type has its own template but can use the same macros by adding a property "IsReference". Then I edit the macros to check for IsReference and if it is a reference, I get the reference Content Item, if it's not, then get the currentPage.
I realize its not exactly what you're looking for, but it allow for all the sorting you want and technically the content is still in one place only.
There is no way to do multiple parents in Umbraco like you're thinking that I'm aware of.
显然,不可能通过标准 umbraco 功能来解决这个问题,但是可下载的 umbraco 包 uComponents 包含一个名为 多节点树选取器 的控件,它允许您做我想要的事情。
更多详细信息可以在这里找到:
http://our.umbraco.org/forum /developers/extending-umbraco/19558-Multiple-parents-for-document
这是该控件的文档:
http://ucomponents.codeplex.com/wikipage?title=MultiNodeTreePicker&referringTitle=文档
Apparently it's not possible to solve this by standard umbraco functionality, but the downloadable umbraco package uComponents contains a control called Multi Node Tree Picker that allows you to do just what I wanted.
More details can be found here:
http://our.umbraco.org/forum/developers/extending-umbraco/19558-Multiple-parents-for-document
And here is the documentation for the control:
http://ucomponents.codeplex.com/wikipage?title=MultiNodeTreePicker&referringTitle=Documentation