Umbraco (4)-outputting the document Type Properties (translated documents)

Source: Internet
Author: User
Tags umbraco

Translated original address: http://www.ncloud.hk/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/umbraco4outputting-the-document-type-properties/

Output Document Type properties

You will notice that the property content that we added to the homepage document type is not displayed. We need to combine the attributes defined in the document type with the template that displays the document type (those data fields created in Umbraco can be edited), first let's look at where the property content should appear in the homepage page:

"Our data attribute content should be output"

We have marked the Data property we want to output as blue. Now we need to connect the related properties.

Now to Settings > Templates > Homepage, scroll down and highlight the text "H1#title"

"Ready to replace with a Umbraco data attribute"

Click the button Insert Umbraco Page field , and in the Choose field , select PageTitle in the custom attribute group of the drop-down option.

"Umbraco page Field/property"

Click the Insert button and click the Save button.

Then before

"Replace Umbraco page bodytext field"

Finally we replaced the Footertext field in the footer section.

"Footer Text"

Now we reload the page ... You can see that the content we added shows up. And then we can go back. Add three tabs called Article 1, article 2, article Footer, each containing a title and content field, and add these data properties to the appropriate location in the homepage template as described above. This will limit the content to always have these parts. This may be good, but we can also use child nodes-we will learn about them behind.

"Original: Https://our.umbraco.org/documentation/using-umbraco/creating-basic-site/Outputting-the-Document-Type-Properties"

Umbraco (4)-outputting the document Type Properties (translated documents)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.