<!doctype html><html><head>
<meta charset="UTF-8">
</head><body>UPDATE re dynamic function:<br>
manually adding a dyn function element to the container with "Edit controlcode" works and I can then edit it in ADE.<br>
But via dropping the container does not accept it (shows no dashed red lines in ADE).<br>
Can see it in Apollo demo working with the "OpenCms Info" dyn function element ... compared its config to mine and cannot see what may basically make the difference.<br>
<br>
For my understanding it's the container's type that determines what elements can go there:<br>
<container name="centercontainer" type="center" width="500" ...<br>
In func element I set type to "center" but also tried "*" and width min=50/max=800 w/o success.<br>
<br>
Are there some other settings that do the trick?<br>
<br>
Gerd<br><br><div class="gmail_quote">Am 15. Mai 2018 04:43:45 MESZ schrieb Gerd Schrick <mail@schrick-design.de>:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p>Dear All, <br> <br> in 10.5.3 (tomcat 8 standalone) I tried to set up a list and detail page as described in the doku (http://documentation.opencms.org/opencms-documentation/content-in-opencms/lists-of-resources-and-detail-pages/) for some hours now but it ended just in a mostly frustrating adventure ... hopefully someone can help to proceed with more success. ;-)<br></p><p> Here in short my issues: <br> <br> 1) created news_list.jsp and a dynamic function in my module ... <br> unable to "drop it on a container page" (I can drag it but the container won't accept it) - how to enable that? <br> finally was able to create a new list-page after I added it as Function to module config - is this the only way? <br> <br> 2) list works as expected but no "+" shows up to add a new item although the docu says: "[...] if the attribute <em>editable</em> is set to <em>true </em>[...]"<br>my config is:<br><cms:contentload collector="allInFolder" param="${folder}|my-news|${count}" editable="true"><br> when I add "|${folder}my-news_%(number).xml" (or something else) to the param attribute the + is shown but then I finally get an error "The new file name pattern "/news/article/.elements/" does not contain the number macro." when selecting "Copy" or "New" in the dialog that shows after a click on the +.<br>UPDATE: just found out that it works when I use param="${folder}my-news_%(number).xml|my-news|${count}" - this should be mentioned!<br>Is there a doku about the collectors and their parameters? Where to find? I still can't get collector "<em>allInFolderNavPos</em>" to work ...<br> <br> 3) added a detail page as described and checked in sitemap config <br> but a click on the item link in the list as well as in explorer on the item's content file via context menu > Display says there's no detail page configured for the resource (but it is and it's not disabled in the module config!?) <br> <br> And yes, I'd like to use and understand the "old" way, although an alternative for V10+ is recommended (what I did not try yet). <br> <br>Any help is greatly appreciated.<br> <br>Thanks a lot, <br> Gerd</p>
</blockquote></div></body></html>