<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi Daniel,
<br>
</div>
<div>
<br>
</div>
<div>
thank you for your reply ... but the selection is still empty.
<br>
</div>
<div>
<br>
</div>
<div>
Yes, that's all done (as far as I can see);
</div>
<div>
Regarding config, my module and site is similar (but way simpler) to the Demo site and the module "alkacon.mercury.template":
<br>
</div>
<div>
- formatters and resource types configured in a sitemap master config in the module
<br>
</div>
<div>
- in the site's sitemap config this master config is included
<br>
</div>
<div>
- in all formatters Match is set to container type "maincontent" (the only container used in my site/template)
<br>
</div>
<div>
- 2 (intended to be used in the list) of the 4 formatters have the "display formatter type" set
<br>
</div>
<div>
- all formatters work in the template/pages
<br>
</div>
<div>
<br>
</div>
<div>
INTERESTING 1:
</div>
<div>
I copied my list config to the "shared" folder then right click->Edit and all display formatters (Mercury + mine) are listed
<br>
</div>
<div>
INTERESTING 2:
</div>
<div>
(that finally confused me ;) I set/added in formatter config Container type to "mercury-list" and my formatter immediately showed up in the list editor within the Demo site!? (did not add it to the Demo site's config anywhere)
<br>
</div>
<div>
<br>
</div>
<div>
So that seems that the empty selection in my site is somehow related to the formatters' Match/container type.
<br>
</div>
<div>
But how?
</div>
<div>
I wasn't able to figure out why seemingly only container type "mercury-list" is what matters whereas eg. "accordion" or "article" don't
<br>
</div>
<div>
(as detected in /system/modules/alkacon.mercury.template/formatters/display/accordion/article.xml)
<br>
</div>
<div>
<br>
</div>
<div>
And from where does the List (config/editor/app) know what container type will match when I juat create a List in the List Workspace App (and not on a page/tamplate)?
<br>
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Thank (all of) you in advance for any de-confusing hints :-)
<br>
</div>
<div>
<br>
</div>
<div>
Best,
<br>
</div>
<div>
Gerd
<br>
</div>
<blockquote type="cite">
<div>
Daniel Seidel <d.seidel@alkacon.com> hat am 26. Mai 2020 07:54 geschrieben:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<p>Hi Gerd,</p>
<p>did you activate your display formatters in the configuration or in some (sub-)sitemap config? And not disable them in some (sub-)sitemap config? Do the formatters have any Match (via container type) defined? If all this is the case and a value for display formatter type is provided, you should be able to select the formatter.<br></p>
<p>Best, Daniel.<br></p>
<div class="moz-cite-prefix">
Am 25.05.20 um 19:16 schrieb Gerd Schrick:
<br>
</div>
<blockquote type="cite">
<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:
<a href="https://documentation.opencms.org/opencms-documentation/content-in-opencms/lists-and-detail-pages/building-lists/lists-with-the-integrated-list-type/" class="moz-txt-link-freetext">https://documentation.opencms.org/opencms-documentation/content-in-opencms/lists-and-detail-pages/building-lists/lists-with-the-integrated-list-type/</a>
<br>
</div>
<div class="default-style">
and "Lists and detail pages III"
<br>
</div>
<div class="default-style">
here:
<a href="https://documentation.opencms.org/opencms-documentation/demos/lists-and-detail-pages-iii/" class="moz-txt-link-freetext">https://documentation.opencms.org/opencms-documentation/demos/lists-and-detail-pages-iii/</a>
<br>
</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 formatter to the list, the " Display formatter type" option in the formatter 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>
<br>
<pre class="moz-quote-pre">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" class="moz-txt-link-freetext">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<pre class="moz-signature">--
Kind Regards,
Daniel.
-------------------
Daniel Seidel
Alkacon Software GmbH & Co. KG - The OpenCms Experts
<a href="http://www.alkacon.com" class="moz-txt-link-freetext">http://www.alkacon.com</a> - <a href="http://www.opencms.org" class="moz-txt-link-freetext">http://www.opencms.org</a> </pre>_______________________________________________
<br>This mail is sent to you from the opencms-dev mailing list
<br>To change your list options, or to unsubscribe from the list, please visit
<br>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
<br>
<br>
<br>
<br>
</blockquote>
</body>
</html>