Content Type ReferenceΒΆ
As already described in Creating a Page Template a template consists of multiple content types, which enable the user to manage content in a semantic way.
The simplest template possible looks something like the this:
<?xml version="1.0" ?>
<template xmlns="http://schemas.sulu.io/template/template"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.sulu.io/template/template http://schemas.sulu.io/template/template-1.0.xsd">
<key>default</key>
<view>ClientWebsiteBundle:templates:default</view>
<controller>Sulu\Bundle\WebsiteBundle\Controller\DefaultController::indexAction</controller>
<cacheLifetime>2400</cacheLifetime>
<meta>
<title lang="en">Default</title>
</meta>
<properties>
<property name="title" type="text_line" mandatory="true">
<meta>
<title lang="en">Title</title>
</meta>
<tag name="sulu.rlp.part"/>
</property>
<property name="url" type="resource_locator" mandatory="true">
<meta>
<title lang="en">Resourcelocator</title>
</meta>
<tag name="sulu.rlp"/>
</property>
</properties>
</template>
This chapter will describe which types you can insert within the
properties
tag. Every content type in the documentation comes with an
example property
tag to clarify the usage.
This documentation also specifies the available parameters and tags for each content type:
- Block
- Contact selection
- Account selection
- Category selection
- Checkbox
- Color
- Contact account selection
- Date
- Datetime
- Location
- Media selection
- Number
- Page Selection
- Phone
- Resource locator
- Route
- Select
- Single Select
- Single page selection
- Single Contact selection
- Single Account selection
- Single Media selection
- Smart content
- Snippet Selection
- Tag Selection
- Teaser Selection
- Text area
- Text editor
- Text line
- Time
- URL