New answers tagged

0

I can imagine you get confused by the example in the documentation; it looks rather dubious indeed. For a real-life, working and tested example see: https://github.com/sdl/dxa-modules/blob/master/webapp-java/dxa-module-search/src/main/java/com/sdl/dxa/modules/search/controller/SearchController.java


1

DXA indeed offers out-of-the box support for Navigation based on Taxonomies and has a KeywordModel for mapping a Keyword field to a View Model. For all other Taxonomy-related functionality, you should indeed use the applicable CD APIs. That is: CIL for 8.x or PCA for 9.x.


1

It seems that my surmise about the @RequestMapping for the class was correct. For the method mapping, "DoStuff" doesn't seem to make any sense at all. I now have an implementation where handleGetEntity gets called. The signature looks like this: @RequestMapping(value = "Entity" + "/{entityId}") public String handleGetEntity(...


3

In general, CD Linking generates absolute URLs if you define Publication mappings in cd_link_conf.xml. If you prefer server-relative URLs (which is often the case), you should not define any Publication elements in cd_link_conf.xml (Maybe it also works if you do define Publication elements, but no Host elements; never tried that). Regarding ComponentAnchors=...


Top 50 recent answers are included