umbraco 4 中的文件夹

发布于 2024-07-16 09:39:42 字数 58 浏览 5 评论 0原文

有没有办法在 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 技术交流群。

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

发布评论

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

评论(1

不羁少年 2024-07-23 09:39:42

这是一个文档有些缺乏的领域,但它是完全可行的:

创建一个名为“内容文件夹”的文档类型。 (您不能使用文件夹,因为它已在系统中使用)。

为新文档类型指定以下属性:

名称:重定向到

别名: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

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