2

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}">
</c:forEach>

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

1 Answer 1

1

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

2
  • 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 ? Jun 21, 2016 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). Jun 21, 2016 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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