-
Templating and Integration Guide
- Part 1: Concepts
- Part 2: Modules
- Part 3: Templates and Studio
- Part 4: Content Definitions and Views
- Part 5: Advanced Techniques
- Part 6: Setting up an integration environment
- Part 7: Step by step integration
- Further reading and resources
Namespaces
The declaration of a new node type is preceded by its namespace.
[namespace:NodeType]
The namespace is freely defined. In Jahia you will usually use predefined namespaces such as the nt and jnt namespaces (nt: nodetype, jnt = Jahia nodetype). You may also use the jnt namespace in your own definitions, but we recommend you to define a custom one in order to distinguish the definitions that come with the software from the definitions that were added later. In this guide, we will use the cnt (custom nodetype) namespace in the examples that are not directly taken from the Jahia sources.
New Namespace declaration
You can find a complete reference to the namespace declaration here: http://www.w3.org/TR/xml-names/
An XML namespace is identified by a URI reference [RFC3986]; element and attribute names may be placed in an XML namespace using the mechanisms described in this specification.
Basically you have to define a unique prefix for all your content definition
Here is an example:
<ns = 'http://namespace.com/ns'>

