<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"Preformattato HTML Carattere";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.PreformattatoHTMLCarattere
{mso-style-name:"Preformattato HTML Carattere";
mso-style-priority:99;
mso-style-link:"Preformattato HTML";
font-family:Consolas;}
span.StileMessaggioDiPostaElettronica19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="IT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Is there something more to be configured?<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Yes, visit <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><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><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">or
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Go to the .config file editor and open the "Detail pages" dialog<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Leonardo Olivieri<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Da:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org]
<b>Per conto di </b>Gerd Schrick<br>
<b>Inviato:</b> domenica 20 maggio 2018 21:17<br>
<b>A:</b> The OpenCms mailing list <opencms-dev@opencms.org><br>
<b>Oggetto:</b> Re: [opencms-dev] Totally lost with list and detail page<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">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<o:p></o:p></p>
<div>
<p class="MsoNormal">Am 17. Mai 2018 01:41:46 MESZ schrieb Gerd Schrick <<a href="mailto:mail@schrick-design.de">mail@schrick-design.de</a>>:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<pre style="margin-bottom:12.0pt">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 <<a href="mailto:alex@opencms.org">alex@opencms.org</a>> hat am 16. Mai 2018 um 08:13 geschrieben: <o:p></o:p></pre>
<blockquote style="border:none;border-left:solid #729FCF 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm;margin-bottom:6.0pt">
<pre> 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> <o:p></o:p></pre>
<blockquote style="border:none;border-left:solid #AD7FA8 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm;margin-bottom:6.0pt">
<pre> Am 15.05.2018 um 19:33 schrieb Gerd Schrick < <a href="mailto:mail@schrick-design.de">mail@schrick-design.de</a>>:<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 < <a href="mailto:mail@schrick-design.de">mail@schrick-design.de</a>>:<o:p></o:p></pre>
<blockquote style="border:none;border-left:solid #8AE234 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm;margin-bottom:6.0pt">
<pre> 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<o:p></o:p></pre>
</blockquote>
<pre> <o:p></o:p></pre>
<pre style="text-align:center"><hr size="3" width="100%" align="center"></pre>
<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> <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> <o:p></o:p></pre>
</blockquote>
</blockquote>
<pre><o:p> </o:p></pre>
<blockquote style="border:none;border-left:solid #729FCF 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm;margin-bottom:6.0pt">
<pre style="text-align:center"><hr size="3" width="100%" align="center"></pre>
<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> <a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><o:p></o:p></pre>
</blockquote>
<pre style="text-align:center"><hr size="3" width="100%" align="center"></pre>
<pre style="margin-bottom:12.0pt"><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><o:p></o:p></pre>
</blockquote>
</div>
<p class="MsoNormal">-- This message has been checked by ESVA and is believed to be clean.
<o:p></o:p></p>
</div>
</body>
</html>