...
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:Expand Code Block <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.27-incubating</version> </dependency>
Now we need a content app for managing something, call them 'offers'.
Now that you have offers.yaml, put it in theExpand 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)
apps
directory of your 'rewe' light module, from earlierAdd 3 offers using your new Offers app.
Note Make sure for 'Country', you use 'cn' and 'gb'. This is for later testing in the exercise.
- Now we'll make a page to display the items from that app:
- yz
...