I am currently struggling with the DXA Configuration / Resource settings. I was looking at the documentation Managing configuration (Java) and saw that I can either use my own Schema or the existing generic Schema based on key/value pairs. I personally dont want our editors to be able to mess the key/value pairs up so I decided to go the custom Schema way.
I do currently have an existing Schema that I want to use as DXA settings:
Schema Name: System - MVP Intranet Configuration
<intraConfiguration xmlns="uuid:00c95b0d-7dca-4fbf-9718-08a0c9b4ea47">
<logo xlink:type="simple" xlink:href="tcm:1187-369286" xlink:title="Logo SVG" xmlns:xlink="http://www.w3.org/1999/xlink"></logo>
<bgImage xlink:type="simple" xlink:href="tcm:1187-369173" xlink:title="page-background mountains" xmlns:xlink="http://www.w3.org/1999/xlink"></bgImage>
<bgColor>#9fbcd7</bgColor>
<siteUnit>Global Intranet</siteUnit>
<siteHeading>Local Dev</siteHeading>
<siteSubHeading>Local Intranet</siteSubHeading>
<shareTicker>http://charts3.equitystory.com/teaser/...</shareTicker>
<copyright>© Our Intranet 2017</copyright>
<shareSubject>Link recommendation for our Intranet</shareSubject>
<intranetNavigatorLabel>Intranet Navigator</intranetNavigatorLabel>
<intranetNavigatorHeading>Select an Intranet Homepage</intranetNavigatorHeading>
<hotNewsCategory xlink:href="tcm:1187-370836-1024" xlink:title="Top News" xmlns:xlink="http://www.w3.org/1999/xlink">Top News</hotNewsCategory>
<globalNewsCategory xlink:href="tcm:1187-370835-1024" xlink:title="News" xmlns:xlink="http://www.w3.org/1999/xlink">News</globalNewsCategory>
</intraConfiguration>
So since the documentation only covers the Generic key/value Schema, my question is: How can I use my own configuration Schema as stated in the documentation?
I tried messing around with
${localization.getConfiguration('mvp-core.siteSubHeading')}
(my DXA module is called MVP-Core) but I was only able to read values from the generic Schema, not from my own.
The settings Component is linked to my Module Configuration Component and is Published in the /_System/settings.json
Page.
This is a picture of my Module configuration:
Thanks for your help and advice!