Page tree
Skip to end of metadata
Go to start of metadata

The Pages module installs the Pages app that allows editors to editors to edit Web pages. See Authoring for more information about using the app.

Installing

Maven is the easiest way to install the module. Add the following to your bundle:

<dependency>
  <groupId>info.magnolia.pages</groupId>
  <artifactId>magnolia-pages-app</artifactId>
  <version>6.2.2</version>
</dependency>

<dependency>
  <groupId>info.magnolia.pages</groupId>
  <artifactId>magnolia-pages-app-compatibility</artifactId>
  <version>6.2.2</version>
</dependency>

<dependency>
  <groupId>info.magnolia.pages</groupId>
  <artifactId>magnolia-pages-editor-widget</artifactId>
  <version>6.2.2</version>
</dependency>

<dependency>
  <groupId>info.magnolia.pages</groupId>
  <artifactId>magnolia-spa-rendering</artifactId>
  <version>6.2.2</version>
</dependency>

Others

Template definition endpoint for SPA

For Single-page applications, the magnolia-spa-rendering submodule provides a dedicated template definition endpoint which is used to deliver page, area and component template definitions.  Its implementation class is info.magnolia.rendering.spa.rest.v1.TemplateDefinitionEndpoint. You don’t need to configure anything in the endpoint.

Example request URL and response for template id mtk:components/text:

http://localhost:8080/magnoliaAuthor/.rest/template-definitions/v1/mtk:components/textImage
 Click to see the form of the URL used before the release of Magnolia 6.2.1.
http://localhost:8080/magnoliaAuthor/.rest/templateDefinition/v1/mtk:components/textImage
{
    "mtk:components/textImage": {
        "dialog": "mtk:components/textImage",
        "templateScript": "/mtk/templates/components/textImage.ftl",
        "name": "textImage",
        "id": "mtk:components/textImage",
        "type": "content",
        "renderType": "freemarker"
    }
}

Note: Page content for single-page applications is delivered through the Delivery endpoint API v2.