O'Reilly logo

Umbraco User's Guide by Paul Sterling, Nik Wahlberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

WORKING WITH DOCUMENT TYPES OUTSIDE OF UMBRACO

Adding document types can sometimes be time consuming and cumbersome, especially if the document type has a lot of tabs and fields. So, instead of forcing you to re-enter all this information time and time again, Umbraco provides the ability to export existing document types and import them into another installation.

Exporting a Document Type

As shown in Figure 3-11, exporting is an easy three-step process:

  1. Right-click the document type you want to export.
  2. Click Export Document Type.
  3. Save the generated XML file on your computer.

FIGURE 3-11

image

The file type that Umbraco generates is saved with an extension of .udt. You can open this using any text editor like Notepad. You can manually edit the document type by altering the XML in the exported .udt file. However, doing this is not advised because system-generated IDs can get out of sync and duplicated if you are not careful.

You can do a couple of things with your shiny new exported document type. The most obvious is importing it to another installation (see the next section in this chapter) to avoid starting from scratch and retyping all your properties and tabs.

image If you have custom data types defined in a given Umbraco installation and you export your document type for use with another ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required