You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Could be based off of this: Code Snippets and https://documentation.magnolia-cms.com/display/DOCS56/Developing+a+custom+content+editor+app

  1. We'll be using the FreeMarker directive continue, so we need to update the version of FreeMarker that came with Magnolia (2.3.25 - you could find it in your WEB-INF/lib).  Add the following to your webapp pom:

    <dependency>
      <groupId>org.freemarker</groupId>
      <artifactId>freemarker</artifactId>
      <version>2.3.27-incubating</version>
    </dependency>
  2. Now we need a content app for managing something, call them 'offers'. 

    Use the Groovy App to create a content app called 'Offers'. (this is just to create the workspace and get us the roles)

    Delete /modules/groovy/apps/offers (you will use my copy instead later)

    Delete /modules/ui-admincentral/config/appLauncherLayout/groups/edit/apps/offers (you will put it somewhere else later)

    Log out of Magnolia and log back in (this is for your user environment to pick up the new roles)

    Add this: offers.yaml to light_modules/rewe/apps/ (I've made some useful changes and made sure it has no errors)

    Import this configuration: config.modules.ui-admincentral.config.appLauncherLayout.groups.rewe.xml (This will put the app in it's own group)


  3. Now that you have offers.yaml, put it in the apps directory of your 'rewe' light module, from earlier.
  4. Now we'll make a page to display the items from that app:

  5. yz

  • No labels