fredag den 12. august 2016

Umbraco Developer structure

Data types

From Backoffice select Developer Tata Types.
Here are build in Data Types or you can create your own.

Create Data Type by click on Data Types and then create.

Give it a name and select a propertis editor.
Configuring as you will and click SAVE






 Document Type


From Backoffice select Settings and then Document Types.

Here you can see your Document types and you can create a new with or without a template
Note if you want to Inherited from EX Text Page, you have to mark Text Page, and from there create, different from the latest version. 



 Template


  • Umbraco only renders what you tell it to render
  • Primary template language is Razor
  • Has support for ASP.NetWebForms


Razor

<head>
<title>@CurrentPage.Name</title>
</head>
<body>@CurrentPage.textContent</body>

What’s On CurrentPage?


  • Id
  • Name
  • UrlName
  • URL
  • DocumentTypeAlias
  • WriterName
  • CreatorName
  • Version
  • Level
  • SortOrder
  • CreateDate
  • UpdateDate
  • IsDraft
  • Parent
  • Children
  • GetProprety(alias)