We are now going to create a page where we put our contact details. For added functionality, you might want to look at replacing this with a fully fledged contact us form.
Some potential solutions:
Let's create a content-only contact page where we can provide a title and some rich text.
Go to Settings.
Select the ... next to the Document Types in the Settings tree.
Select Document Type with Template. The Document Type opens in the content editor.
Select an Icon from the list of icons.
Enter a Name. Let's call it Simple Content Page.
Enter a Description.
Let's add two fields with the following specifications:
Group Field Name Alias Data Type Content Page Title pageTitle Textstring Content Body Text bodyText Rich Text EditorClick Save.
Go to Templates to view your Simple Content Page template that was created automatically with the Document Type.
Select the Simple Content Page template and then select Master as the Master template.
Add the following HTML to the Simple Content Page template and click Save.
<!-- Jumbotron, w title --> <div class="jumbotron text-center jumbotron-fluid"> <div class="container"> <h1 class="display-1">Umbraco Support</h1> </div> </div> <!-- Main --> <section id="main" class="wrapper"> <div class="container"> <p>Are you a developer?</p> <p>Are you a marketer?</p> <p>Are you working at an agency?</p> <p>Let Umbraco unleash your talent</p> </div> </section>
Click Save.
We now need to update the Document Type permissions to specifically add child nodes under the root content node.
To update the Document Type permissions:
To create a content node:
To add the Document Type properties:
<!-- Jumbotron, w title -->
(around line 7) section and highlight the text “Umbraco Support”
.<div class="container">
tag:
<p>
tag (around line 17) to the end of the </p>
tag (around line 20).To view the Contact Us Page:
You may notice that the footer is now empty - we don't have the content from our Homepage node.
To use the Document Type properties from the homepage, do the following:
@Model.Value("footerText")
in the footer (around line 51) and click Insert.Reload the Contact Us page to view the content with the footer.
Prev: Creating Master Template Part 1 Next: Setting The Navigation Menu
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4