<html><head></head><body>DETAIL PAGE: again spent some (frustrating) hours with searching and trying ... and still don't know why they don't work.<br>
<br>
What I have:<br>
1. my-news resourcetype in module:<br>
- Title mapped to urlName<br>
- "with page" is set<br>
- disable detail page is unset<br>
- no filename pattern specified (the default is used; works)<br>
2. Container page "/news/article/"<br>
- the single and only container in the template with detailview="true"<br>
- configured as detail page in sitemap .config and<br>
- sitemap shows it by the addition "(*my-news)"<br>
- news items are correctly stored in subfolder .elements/<br>
3. Container page "/news/" with a list<br>
- created via collector<br>
- links rendered via <cms:link><br>
- correctly collects and shows the items stored in "/news/article/.elements/"<br>
- links are NOT rewritten and just point to the items content element (e.g. /news/article/.elements/my-news_0002.xml)<br>
<br>
Is there something more to be configured?<br>
Some restrictions or further requiremens/conditions to be met that a detail page will be used for the resourcetype?<br>
<br>
Would be great if someone can help with this.<br>
Gerd<br><br><div class="gmail_quote">Am 17. Mai 2018 01:41:46 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;">
<pre class="k9mail">Alex,<br><br>you made my day! :-)<br>"Your function element also needs to generate some output." was the perfect hint - missing/wrong default values in element settings produced an initial Error in the function; with that corrected the dropping works perfectly.<br>BTW: a really cooool feature of OCMS (among many others).<br><br>But I'm still stuck with the detail page:<br>when I click on the link in the list I get (in Chromium):<br>-<br>This page contains the following errors:<br>error on line 20 at column 122: xmlParseEntityRef: no name<br>-<br>when in preview mode it says:<br>-<br>This page contains the following errors:<br>error on line 41 at column 132: Opening and ending tag mismatch: img line 0 and a<br>-<br>in Firefox I get:<br>-<br>XML-Verarbeitungsfehler: nicht wohlgeformt<br>Adresse: <a href="http://localhost:8080/opencms/news/article/.elements/my-news_0002.xml">http://localhost:8080/opencms/news/article/.elements/my-news_0002.xml</a><br>Zeile Nr. 20, Spalte 122:(function(a,b){function G(a){var b=F[a]={};return ......<br>-<br><br>I can edit the news item(s), use add and edit them in the list, display and edit the (details) containerpage itself including an item, all w/o errors.<br>So I assume it has something to do with my config of the details page.<br>I've set it up multiple times, changed the config, played around ... with no success (and further ideas) yet.<br><br>Would be really great to get some insights here too.<br><br>Thanks ahead,<br>Gerd<br><br>Alex Kandzior <alex@opencms.org> hat am 16. Mai 2018 um 08:13 geschrieben: <br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Gerd,<br> <br> you are on the right track. <br> <br> The container type of the container tag must match the one configured in the function element (or formatter).<br> So setting both types to "center" or "somethingother" should work.<br> <br> You should not use the "width" together with the type, only either the type or the width. <br> "width" does not make no sense in modern respinonsive layouts so I consider it deprecated, but it still is supported.<br> <br> Your function element also needs to generate some output. <br> If the function element does not generate any output, it can not be dropped even if the container types match.<br> Hello world would word.<br> <br> HTH<br> <br> Kind regards,<br> <br> Alex. <br> <br> ------------------- <br> Alexander Kandzior <br> <br> Alkacon Software - The OpenCms Experts <br> <a href="http://www.alkacon.com">http://www.alkacon.com</a> - <a href="http://www.opencms.org">http://www.opencms.org</a> <br> <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Am 15.05.2018 um 19:33 schrieb Gerd Schrick < mail@schrick-design.de>:<br> <br> 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> 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> Am 15. Mai 2018 04:43:45 MESZ schrieb Gerd Schrick < mail@schrick-design.de>:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> 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 (<a href="http://documentation.opencms.org/opencms-documentation/content-in-opencms/lists-of-resources-and-detail-pages/)">http://documentation.opencms.org/opencms-documentation/content-in-opencms/lists-of-resources-and-detail-pages/)</a> for some hours now but it ended just in a mostly frustrating adventure ... hopefully someone can help to proceed with more success. ;-)<br> <br> 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 editable is set to true [...]"<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 "allInFolderNavPos" 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<br></blockquote> <br><hr><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> <a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a> <br> <br> <br></blockquote></blockquote><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><hr><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> <a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br></blockquote><hr><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><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br><br><br><br></pre></blockquote></div></body></html>