umbraco 4 中的文件夹
有没有办法在 umbraco 4 中简单地创建文件夹来组织内容? 我搜索过论坛并没有找到合理的答案。
Is there a way to simply create folders in umbraco 4 for the purpose of organizing content? I've searched forums and did not find a reasonable answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个文档有些缺乏的领域,但它是完全可行的:
创建一个名为“内容文件夹”的文档类型。 (您不能使用文件夹,因为它已在系统中使用)。
为新文档类型指定以下属性:
名称:重定向到
别名:umbracoRedirect
类型:ContentPicker
重要的一点是别名:umbracoRedirect。 这是未记录的内置 umbraco 功能之一。 它基本上将一个节点重定向到另一个节点(使其充当文件夹)。
如果您想从菜单中隐藏该文件夹,那么您需要添加另一个未记录的属性:umbracoNaviHide,它在默认的 XSLT 导航示例中使用。
更多信息:http://www.umbraco。 org/documentation/books/converting-existing-site-to-umbraco/creating-folders
This is an area where the documentation is somewhat lacking, however it is perfectly doable:
Create a document type called something like "Content Folder". (You can't use Folder as it's already in use in the system).
Give the new doc type the following property:
Name: Redirect to
Alias: umbracoRedirect
Type: ContentPicker
The important bit there is the Alias: umbracoRedirect. This is one of the undocumented built in umbraco features. It basically redirects one node to another (making it act like a folder).
If you want to hide the folder from the menu then you'll need to add another one of those undocumented properties: umbracoNaviHide, which is used in the default XSLT navigaiton examples.
More info: http://www.umbraco.org/documentation/books/converting-existing-site-to-umbraco/creating-folders