Pages module

Edition CE

License

MLA, GPL

Issues

PAGES

Maven site

Pages

Latest

6.2.4

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 with maven

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.4</version>
</dependency>
<dependency>
  <groupId>info.magnolia.pages</groupId>
  <artifactId>magnolia-pages-app-compatibility</artifactId>
  <version>6.2.4</version>
</dependency>
<dependency>
  <groupId>info.magnolia.pages</groupId>
  <artifactId>magnolia-pages-editor-widget</artifactId>
  <version>6.2.4</version>
</dependency>
<dependency>
  <groupId>info.magnolia.pages</groupId>
  <artifactId>magnolia-spa-rendering</artifactId>
  <version>6.2.4</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
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"
    }
}
Page content for single-page applications is delivered through the Delivery endpoint API v2.
Feedback