一把umbraco 7:创建子菜单的数据类型 [英] Umbraco 7: create menu datatype with submenus

查看:217
本文介绍了一把umbraco 7:创建子菜单的数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何可以创建子菜单项的导航菜单的数据类型,这样我可以在后台像文本中,href,可选的图片属性创建它?类似下拉多。
我已经安装了一把umbraco 7.1.5用的NuGet在VS2013和使用剃刀语法。搜索结果
修改
是否有可能创建类型的菜单对象并进行编辑在后端的用户界面,对于非开发。用户应该添加尽可能多的项目或根据需要用这些属性,用加号子项。我发现的属性编辑器。这可能使用此属性编辑器?

How can I create a navigation menu data type with submenu items so that I can create it in the back office with properties like text, href, optional image? Something like dropdown multiple. I've installed Umbraco 7.1.5 with NuGet in VS2013 and using Razor syntax.

Is it possible to create an object of type menu and edit it in the back-end's UI, for a non-developer. The user should add as many items or sub items as needed with those properties, with a plus sign. I've found this property editor. Is this possible using this property editor?

推荐答案

创建的局部视图(下设置部分后端)。如果您创建一个新的局部视图,在pre创建的片段之一将是导航。

Create a Partial View (in the back-end under the SETTINGS section). If you create a new partial view, one of the pre-created snippets will be "navigation".

然后使用一些CSS菜单(例如自己创建或谷歌上找到),并尝试导航HTML匹配的CSS菜单。

Then use some CSS menu (you e.g. created yourself or found on google), and try to match the navigation HTML to that of the CSS menu.

要在模板中包括局部视图只需要使用

To include the partial view in the template just use

@Html.Partial("NameOfThePartialWithoutExtention")

这篇关于一把umbraco 7:创建子菜单的数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆