1

We use SDL Web 8.5 + DXA 2.O for Java. Is it available somewhere the API for the CIS? We want to retrieve the keywords from a component that it's linked to a dynamic component presentation, but keyword info is not populated.

We use postman to call to the model service:

http://slaws2cds9001.myserver.com:8189/EntityModel/tcm/5/593-721

However, we don't get the keyword info:

enter image description here

We are using contentProvider.getEntityModel("593-721", localization)

When accessing to the PageModel with the content related to the page, we get the keyword info. Keywords are in a publishable category and the category is published. In fact, when the component is related with the page, we can get the information.

  • It’s not completely clear to me what you are asking for. – Rick Pannekoek Jun 12 '18 at 18:31
  • Are the Keywords in a publishable Category? If so, is the Category actually published? If so, can you try what happens if you make the Category non-publishable and re-publish the DCP (so that static, CM-side expansion should happen)? – Rick Pannekoek Jun 12 '18 at 18:34
  • For clarity: the DXA Model Service should provide the full Keyword Model Data (if Keyword expansion is properly configured). If not, there may be a bug in the DXA Framework. It should not be needed to do separate roundtrips to CIS to retrieve the Keyword data; the entire purpose of the DXA Model Service is to prevent multiple roundtrips. – Rick Pannekoek Jun 12 '18 at 18:44
  • Keywords are in a publishable category and the category is published. In fact, when the component is related with the page, we can get the information. However when using a dynamic component template, the KeywordModelData is not populated. I can not make the category non-publishable because indeed we need that it's publishable for static content pages. By the way, is there any API information? – tfinez Jun 13 '18 at 9:02
  • 2
    The fix is available at this commit github.com/sdl/dxa-model-service/commit/…, there's no update version so we just override the jar dxa-model-service-controller-2.0.0.jar in the service sdl/model/services/model-service/ – tfinez Sep 12 '18 at 11:22

Your Answer

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

Browse other questions tagged or ask your own question.