Displaying the Document Type Properties
You might have noticed that the content we've added to the homepage is not being displayed. We need to wire up the Data Type properties to the template.
Let’s look at our template and identify where the content should be displayed.
The top arrow in this image is the Page Title and the bottom arrow is the Body Text. The Footer is all the way at the bottom of the page.
Setting the Document Type Properties
To set the Document Type properties:
Go to Settings.
Select Templates in the Templating section, and open the Homepage template.
Scroll down to the
<!-- Jumbotron, w title -->
section (around line 46) and highlight the text“Welcome - UmbracoTV”
(around line 49).Click Insert and select Value.
Select pageTitle field from the drop-down list.
Click Submit.
Repeat the same process for the content between the
<div class="container">
tags (around line 61 to 78):Highlight the content as shown in the figure.
Click Insert and select Value.
Select bodyText field from the drop-down list.
Click Submit.
Repeat the same process for the content in the
<div class="container-fluid footer">
tag (around line 149 to 182):Highlight the content between the
<div class="container">
tags.Click Insert and select Value.
Select footerText field from the drop-down list.
Click Submit.
Click Save.
Reload your homepage to view the content. You should see something similar like the image below:
Now, you can go back and add additional fields or update existing fields in the Document Type. Fill them out in the content node and then add them in the template to display the data in the website.
Last updated