<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="default-style">
Dear all,
<br>
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
(in 11.0.1)
</div>
<div class="default-style">
I have a resource type "sd-project" and two formatters for this type, both with a non-empty "Display formatter type" setting (current value: "list-sd-project:compact"; also tried other values, e.g. the suggested default "display").
<br>
</div>
<div class="default-style">
I then created a List following the docu "Lists with the integrated list type"
</div>
<div class="default-style">
here: https://documentation.opencms.org/opencms-documentation/content-in-opencms/lists-and-detail-pages/building-lists/lists-with-the-integrated-list-type/
<br>
</div>
<div class="default-style">
and "Lists and detail pages III"
<br>
</div>
<div class="default-style">
here: https://documentation.opencms.org/opencms-documentation/demos/lists-and-detail-pages-iii/
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
My problem is, that the dropdown "Content type" in the list's config (app) still remains empty,
</div>
<div class="default-style">
although as the docu (2nd link) says:
<br>
</div>
<div class="default-style">
"The selectable formatters are collected automatically. To get your
<abbr>formatter</abbr> to the list, the "
<abbr>Display formatter</abbr> type" option in the
<abbr>formatter</abbr> configuration has to be set:"
<br>
</div>
<div class="default-style">
what is the case for both of my formatters.
<br>
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
When I edit the list config's control code (according to what I see in the lists of the Demo site)
</div>
<div class="default-style">
and set/add element
<br>
</div>
<div class="default-style">
<TypesToCollect>sd-project:efb48fe8-9e33-11ea-aabc-485b3939753f</TypesToCollect>
</div>
<div class="default-style">
("sd-project" is the type; UUID is the one of the formatter config I'd like to use)
<br>
</div>
<div class="default-style">
anything seems to work perfectly, except the "Content type" selection (that now only shows the entered value as-is).
<br>
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
In the Demo site the selection shows many entries all with nice names and (since hours) I tried to figure out the difference ... but still w/o success.
<br>
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
Obviously I missed something, so my questions are:
</div>
<div class="default-style">
What (in addition) has to be done that the formatters show up?
<br>
</div>
<div class="default-style">
Is there some special logic (naming?) for the formatter's "Display formatter type" setting to follow?
<br>
</div>
<div class="default-style">
Anything else to be configured somewhere?
<br>
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
Any help is greatly appreciated :-)
<br>
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
Best regards,
<br>
</div>
<div class="default-style">
Gerd
<br>
</div>
</body>
</html>