简体   繁体   English

Umbraco轮播内容

[英]Umbraco Carousel Content

I am putting together my first Umbraco project and starting to pick it up nicely. 我正在整理我的第一个Umbraco项目,并开始很好地进行选择。 I am a little stuck at creating an appropriate repeatable field for a Carousel with text, image and a link but also how to output that in a template. 我有点想为带有文本,图像和链接的Carousel创建适当的可重复字段,以及如何在模板中输出该字段。

I come from a Craft CMS / Expression Engine background and would usually use a repeatable field like Matrix or Grid for such a task. 我来自Craft CMS / Expression Engine背景,通常会使用可重复字段(例如Matrix或Grid)来执行此任务。

Any help would be fantastic! 任何帮助都太棒了!

Thanks! 谢谢! -Graham -Graham

Check Nested Content package (it will be included in Umbraco Core soon): https://our.umbraco.org/projects/backoffice-extensions/nested-content/ and then create appropriate document type and use it inside new data type for inserting multiple slides into your desired page / node. 检查嵌套内容包(即将包含在Umbraco Core中): https : //our.umbraco.org/projects/backoffice-extensions/nested-content/ ,然后创建适当的文档类型并将其用于新数据类型中以进行插入多张幻灯片进入所需的页面/节点。

Other way can be to create simple tree structure with slides repository (eg under desired node) and then repeating through them to render carousel on your page. 其他方法可以是使用幻灯片存储库(例如,在所需的节点下)创建简单的树结构,然后重复遍历它们以在页面上呈现轮播。 However, first solution is more appropriate, efficient, less "expensive" from the performance perspective in time. 但是,从性能的角度来看,第一种解决方案更合适,更有效,更“便宜”。

Of course, you could also use the Grid Layout editor: https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout . 当然,您也可以使用“ 网格布局”编辑器: https : //our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout It also may contain other editors inside, so it depends from the requirements and personal preferences of the users / editors. 它还可能在内部包含其他编辑器,因此它取决于用户/编辑器的要求和个人喜好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM