arrow-down
    1. Widgets
  1. IAM
    1. Virtual apps
    1. Projects
    2. Layers
        1. AttachmentUploader
        2. Checkbox
        3. Combobox
        4. ContentSelector
        5. ContentTypeFilter
        6. CustomSelector
        7. Date
        8. DateTime
        9. Double
        10. GeoPoint
        11. HtmlArea
        12. ImageSelector
        13. Long
        14. MediaSelector
        15. Radiobutton
        16. Tag
        17. TextArea
        18. TextLine
        19. Time
      1. Field set
      2. Item set
      3. Option set
      4. Mixins
      5. Localization
    3. Content Types
    4. X-data
    5. Macros
    6. Custom styles
    7. Sites
      1. Regions
      2. Part component
      3. Layout component
      4. Text component
      5. Fragments
      6. Filtering
      7. Component indexing
      8. Visual editor
    8. Page templates
    1. Sandboxes
    2. Code
    3. Building
    4. Configuration
    1. Globals
    2. HTTP
    3. Controllers
    4. Filters
    5. Events
    6. Websocket
    7. Error handler
    8. ID provider
    9. Tasks
    10. Localization
    11. Mappings
    12. Components
    13. Processors
    14. Contributions
    15. Templating
    16. Main controller
    17. Java bridge
      1. Webapp Engine
        1. Image service
        2. Component service
      2. Admin Engine
      3. Asset service
      4. HTTP service
      5. IDprovider service
    1. Task engine
    2. Management Endpoint
    3. Statistics Endpoint
    1. Nodes and repos
    2. Properties
    3. Indexing
    4. Branches
    5. Queries (NoQL)
    6. Queries (DSL)
    7. Filters
    8. Aggregations
    9. Highlighting
    10. Editors
    1. Strategies
    2. Distributions
    3. Docker image
    4. Vhosts
    5. Configuration
    6. Backup & restore
    7. Systemd
    8. Clustering
    1. Admin API
    2. Application API
    3. Auditlog API
    4. Authentication API
    5. Cluster API
    6. Common API
    7. Content API
    8. Context API
    9. Event API
    10. Export API
    11. Grid API
    12. I18N API
    13. IO API
    14. Mail API
    15. Node API
    16. Portal API
    17. Project API
    18. Repo API
    19. Scheduler API
    20. Schema API
    21. Tasks API
    22. Value API
    23. VHost API
    24. Websocket API
  2. Audit Logs
    1. Upgrade Notes
    2. Upgrading Apps

Content Management System

Contents

The pinnacle of Enonic XP is the Content Management API and related tools

Introduction

Use of XP’s CMS capabilities is fully optional. The full range of CMS capabilities are made available through individual, but tightly coupled APIs, services and applications:

  • Content API - Included in the XP core, built on top of the NoSQL Storage

  • Site Engine - Included in the XP core, built on top of the Javascript Framework og web app Engine.

  • Content Studio - Authoring interface available on Enonic Market.

  • Headless GraphQL API - Available as both application and library.

Content Types

The Enonic CMS is content centric, rather than "page" centric. This means that any content produced will have a specific content type, such as "article", "person" or "product". Things like "shortcut", "file", "folder", "site" and even "landing page" are also perfectly valid content types.

Content types essentially define a specific set of fields that define the content. For person, this might be "firstname", "lastname" and "birthdate", while a landing page might to fine with just a "name" field.

Actually, all content types share a standard field named "Display Name", which can be considered the items title. Additionally, a range of meta data fields are available, such as language, permissions, modifiedBy, createdDate and more.

Content types are defined through the Schema system, which enables creation of rich and complex forms as required.

Schema system

A basic concept used throughout the CMS is called schemas. Schemas enable developers to easily define various types of forms used throughout the CMS.

The schema system provides a 1:1 mapping between schema fields and corresponding document properties. For instance, a text input called "title", is mapped to a property called "title" in the underlying document structure.

The schema system provides a range of standard Input types, such as TextLine and ContentSelector. It also offers advanced form components such as ItemSets and OptionSets for creating nested sets of data and optional sets of data.

Pages

Enonic XP is often used as a traditional Web CMS, where editors compose rich landing pages.

Any content item may be configured with a "presentation" - or more precisely, a page.

Pages are composed form a structure of components

  • Page - The customizable root component of a page

  • Regions - drop zone(s) within a page where other components may be placed

  • Layouts - customizable components with region(s) of their own

  • Parts - customizable component

  • Text - Standard free text component

  • Image - Standard component for images

  • Fragment - Special reusable component

Pages, layouts and parts are all fully customizable through custom controllers and corresponding schemas. Get all the details in the pages section

Component availability depends on the application that have been added to your site.

Content indexing

All user defined properties are automatically indexed and available for queries.

In addition, the following standard properties are available for search:

_alltext

A collection of all fulltext-analyzed fields (textLine, textArea, htmlArea) in a content in one property

_id

Holds the id of the content, typically generated automatically in the form of a UUID.

_manualordervalue

The order value used when child-content is ordered manually

_name

Holds the name of the content

_parentPath

Reference to parent content path.

_path

The content path

_permissions_read

The principals that have read access.

_permissions_create

The principals that have create access.

_permissions_delete

The principals that have delete access.

_permissions_modify

The principals that have modify access.

_permissions_publish

The principals that have publish access.

_permissions_readpermissions

The principals that have access to read the content permissions.

_permissions_writepermissions

The principals that have access to change the content permissions.

_references

Outgoing references to other content.

_score

Calculated relevance for a hit

_state

Used for keeping state of a content in a branch.

_timestamp

The last change to the content version.

_versionKey

The id of the node version.

attachment.size

If any attachments, contains an array of attachment sizes

attachment.label

If any attachments, contains an array of attachment labels

attachment.mimetype

If any attachments, contains an array of attachment mime-types

attachment.name

If any attachments, contains an array of attachment name

attachment.binary

If any attachments, contains an array of attachment file-name

attachment.text

If any attachments, contains the extracted text of e.g pdf-files

creator

The user principal that created the content.

createdTime

The timestamp when the content was created.

data

A property-set containing all user defined properties defined in the content-type.

displayName

Name used for display purposes.

language

The locale-property of the content.

modifiedTime

Last time the content was modified.

owner

The user principal that owns the content.

page

The page property contains page-specific properties, like template and regions.

component.text.text This property contains all values in the text-components added to pages

publish.from

The time when the content was first published. This timestamp will be the set both in draft and master branch.

type

The content-type name

x

A property-set containing properties from x-data (this also includes mixins).

Page templates

For some content types, like "article", you might want to re-use the same "presentation" used over and over again. For this specific purpose, we have the content type Page template. By creating a page template for "article", and setting up its page, this page will automatically be used for presenting all articles within your site.

Fragments

From time to time, you might want to reuse a component you placed on page, for multiple pages. Fragments to the rescue! By converting a component to a fragment, the fragment is made available as a separate content item, using the content type fragment ofcourse. Fragments can then be placed on other pages (including page templates), just like any other component. The fragment may now be edited from a single location, and will instantly be updated in all locations where it is placed.

Fragments also enable creative features like limiting access to view or edit a particular part of the page.

Sites

Site is a system defined standard content type. What makes sites special is the ability to add applications to them. Multiple applications may be added to a single site, where each application contains desired functionality.

Typically, sites will have a main application that controls most content types and page components if any. Additional applications like Google Analytics, and SEO tools are typically installed to extend the functionality without custom development.

X-Data

It is often useful to be able to share a set of fields across different content types. Xtra data, or X-data for short was designed specifically for this purpose.

By defining x-data schemas, developers may dynamically inject these extra fields to all, or a specified list of content types. For instance, the SEO Meta fields application makes use of this, so editors may fine-tune SEO settings across all different content they produce.

In Content Studio, X-data is visualized as a separate step in the publishing form.

Site Engine

The Site engine extends the capabilities of the Javascript Framework. The site engine serves requests from:

//myserver:8080/site/<repo-name>/<branch-name>/<content-path>

Content driven

When compared to the Web engine, the main difference is that sites are content driven, rather than code driven.

This is best understood by looking at the initial URL pattern. The Web engine requires the name of the app that will handle the request, where the site engine specifies a repo, branch and path to content as its entry point.

As such, what happens at a specific url is primarily controlled by the editor, rather than the developer directly. Developers can still take control over URLs when required, through the use of Filters and Mappings.

Site apps

To understand the Site engine, it is crucial to understand the concept of sites. The system defined content type Site has a special purpose in relation to the Site engine. This is due to the fact that "site applications" can be added to, and configured specifically for that site.

As a site may contain multiple applications, As multiple applications may be involved in the processing of a single request, the main purpose of the Site engine is to coordinate when, and how each application is executed.

Image Service

Enonic XP contains an Image Service that can scale, process and deliver rasterized RGB/RGBa image media in real-time.

Headless and Hybrid CMS

API-access to content (Headless CMS) combined with web pages commonly referred to as Hybrid CMS.

The content oriented approach makes XP ideal for serving content via API (so-called Headless CMS). It also enables developers to instantly make use of the powerful search capabilities provided by the underlying NoSQL storage.


Contents

Contents

AI-powered search

Juke AI