Umbraco (1)-Document Types (translation documents)

Source: Internet
Author: User
Tags umbraco

Document Types

Data First

Nothing in = Nothing out!

The first step in any website is to create a "Document Type"-you'll be familiar with the term after several installs, but it may be a bit confusing at first. Document Type is a data container in Umbraco, where you can add data fields/properties, edit where users can enter data, and Umbraco can also use it to output the relevant section "template"( These are described in more detail later).

Document Types is infinitely extensible, but usually you will add data fields similar to the following:

· Page Title

· Sub Heading

· Body Text

· Meta Title

· Meta Description

·...

Each data field has a type-for example, a text string or a number or rich text ... This will be spoken in the future.

Create your first document type

Yes, let's get busy. Find Settingin the Umbraco menu, which is the third button in the left-hand side menu. Then you'll see a long list of settings – don't worry about them, we'll introduce them when we need them.

Document types It is strange to locate the last option in the list, but it is the starting point for Umbraco, hovering over the Document types node , you will see three points ... and you will see this menu after you click. Then click the + Create button.

"Create a Document Type"

The drop-down button for the master Document type is now ignored. Give us a name for the new document type = "Homepage", then make sure to create a matching template and select the check box option. Click the Create button.

"Give your document type a name"

Now Umbraco, under Document type This tree node, you will see four tabs info,structure,generic properties,tabs. Click Info (should already be selected), click Choose Next to the icon tag ..., enter "Home" to query, you will see a house icon – this will help us edit the Content tree node later.

"Add an icon to your document type"

Enter Description and type "This is our homepage template". This text is used to help users select the correct document type later.

Immediately, click Structure and select Allow at root. This will allow us to create the root of the home page under this template.

Next we go to see Tabs. Create a name of "Contents", a name of "Footer" (Enter the name and click on the New Tab button, and finally remember to click Saveafter completion).

"Tagging document Types"

now go to Generic Properties -This tab is a data container that we create based on the needs and use of the home page. Click this link click here to add a new property name  = "Page Title". When you move to the next field, you will see Umbraco give an alias "PageTitle". This Type defaults to "TextString", and tab selects "Contents" (remember, this is the one we just created!) )。 Description helps the editor understand again, so we populate this-"This is the title of the main page (for example: Welcome to Widgets LTD). "

"Create a PageTitle data type"

Ignore the rest of the fields and click on the green button in the upper right corner to Save.

Generic Properties tab = "lb_translate_span_8249300689" >click here to add a new property, Then create what you need (remember to click the Save button every time)

You should now have a similar Generic Properties tab:

"Figure for the Generic Properties tab in your homepage Document type"

Now that we have created our first document TYPE-UMBRACO requires three things to create a Web page, which is the first and most important. Document type brings the data needed in the instance and uses it to merge a template-the next step is to edit the template.

Umbraco (1)-Document Types (translation 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.