In DXA Java 1.4 in the page a list of

<c:forEach var="meta" items="${pageModel.meta.entrySet()}">
<meta name="${meta.key}" content="${meta.value}">

Is there in the CME a way to add a value to that list ?


Yes, these PageModel.meta values are derived from CM Page Metadata (and other things).

See the processPageMetadata implementation in PageBuilderImpl: https://github.com/sdl/dxa-web-application-java/blob/master/dxa-framework/dxa-tridion-provider/src/main/java/com/sdl/webapp/tridion/mapping/PageBuilderImpl.java

  • Thanks Rick, for this I create a custom meta data schema that editors can fill in. What if I want to add it to all pages, should I do it in the views then ? – jarnohenneman Jun 21 '16 at 7:53
  • Yes, indeed. If you have HTML meta values which are the same for all Pages (of a given type), you can hard-code those in the associated Page View(s). – Rick Pannekoek Jun 21 '16 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.