📅  最后修改于: 2023-12-03 15:35:27.447000             🧑  作者: Mango
Umbraco 8 Composer is a package for the Umbraco CMS that allows developers to create and manage reusable content blocks using a drag and drop interface. With Umbraco 8 Composer, you can build rich, complex pages quickly and easily.
Some of the key features of Umbraco 8 Composer include:
Umbraco 8 Composer requires Umbraco version 8.0 or higher to be installed.
To install Umbraco 8 Composer, follow these steps:
Once installed, Umbraco 8 Composer can be accessed through the Umbraco backoffice. To create a reusable content block, follow these steps:
You can now add this block to any other page in your Umbraco website. Changes made to the block will automatically be reflected on all pages that use it.
To create a new block type with Umbraco 8 Composer, use the following code:
@inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.MyBlock>
<div>
<h2>@Model.Title</h2>
@Html.PropertyFor(m => m.SomeProperty)
</div>
Replace "MyBlock" with the name of the block type you want to create. This code creates a simple block with a title and a single property.
Umbraco 8 Composer is a powerful tool for Umbraco developers looking to create reusable content blocks. With its intuitive UI and powerful features, Umbraco 8 Composer makes building complex, content-rich pages a breeze.