<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi List! <br><br>I create a content type "News" and this has the URI /my-page/tin-tuc/news/news_00012.html in OpenCms804. The news' title is "my title". The detail page has the path "/my-page/news/". OpenCms generates a link, /my-page/tin-tuc/news/news_0001.html, instead of /my-page/news/my-title/ and the news cant load, and I receive error "It's not possible to get the String value of a nested XML content definition".<br><br>What is happen? Can you help me.<br>Thanks alot. <br>Hant.</span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Alexander Kandzior
<alex@opencms.org><br> <b><span style="font-weight: bold;">To:</span></b> 'The OpenCms mailing list' <opencms-dev@opencms.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 24, 2012 7:58 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [opencms-dev] Detail pages<br> </font> </div> <br>
<div id="yiv1643737828"><style><!--
#yiv1643737828
_filtered #yiv1643737828 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv1643737828 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
_filtered #yiv1643737828 {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv1643737828
#yiv1643737828 p.yiv1643737828MsoNormal, #yiv1643737828 li.yiv1643737828MsoNormal, #yiv1643737828 div.yiv1643737828MsoNormal
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"serif";}
#yiv1643737828 a:link, #yiv1643737828 span.yiv1643737828MsoHyperlink
{color:blue;text-decoration:underline;}
#yiv1643737828 a:visited, #yiv1643737828 span.yiv1643737828MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
#yiv1643737828 p.yiv1643737828MsoListParagraph, #yiv1643737828 li.yiv1643737828MsoListParagraph, #yiv1643737828 div.yiv1643737828MsoListParagraph
{margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt;font-size:12.0pt;font-family:"serif";}
#yiv1643737828 span.yiv1643737828E-MailFormatvorlage17
{font-family:"sans-serif";color:windowtext;}
#yiv1643737828 .yiv1643737828MsoChpDefault
{}
_filtered #yiv1643737828 {margin:70.85pt 70.85pt 2.0cm 70.85pt;}
#yiv1643737828 div.yiv1643737828WordSection1
{}
#yiv1643737828
_filtered #yiv1643737828 {}
_filtered #yiv1643737828 {}
#yiv1643737828 ol
{margin-bottom:0cm;}
#yiv1643737828 ul
{margin-bottom:0cm;}
--></style><div><div class="yiv1643737828WordSection1"><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";">Andy,</span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";"> </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">sorry we have no better guide at the moment but maybe I can help explain the broad concept.</span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">The container page you got pretty correct. Basically the container page allows you to combine several pieces of content in one page. This is suitable for all pages that make up the main navigation.
All container pages are therefore managed “by hand” in the OpenCms sitemap.</span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">Now think of a “News ticker”. The individual news messages are usually not part of the main navigation / sitemap. That is where the detail page comes into the picture. You define one page as the detail page for a specific piece of content, e.g. the “News detail page”. This detail page has a place in the sitemap. So all individual news messages are automatically displayed using this detail page, and their URL is calculated automatically. The mechanism that shows the news on the detail page is in pretty much the same as on a standard container page, with the difference that the content for this specific
container is selected dynamically and not by hand.</span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div class="yiv1643737828MsoNormal"><i><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">What I'm unclear on is when I use an internal link to a specific piece of content, where this goes to, what's loaded, and the use of detailpages to provide a specific formatting/template/rendering for all resources of the same type.</span></i></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">Let’s say you have a content type “News”, and this has the URI /.content/news/news_00012.html in OpenCms. </span></div><div
class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">If you directly link to this content in OpenCms 8, then the following happens: </span></div><div class="yiv1643737828MsoListParagraph" style=""><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"><span style="">1.<span style="font:7.0pt "Times New Roman";"> </span></span></span><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">OpenCms recognizes that you are in an OpenCms 8 ADE enabled sitemap.</span></div><div class="yiv1643737828MsoListParagraph" style=""><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"><span style="">2.<span style="font:7.0pt "Times New Roman";"> </span></span></span><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">Depending on the sitemap you are
currently in, it will look up the configured detail page for news. Let’s say this detail page has the path “/news/”.</span></div><div class="yiv1643737828MsoListParagraph" style=""><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"><span style="">3.<span style="font:7.0pt "Times New Roman";"> </span></span></span><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">OpenCms will now generate a link, based on the path of the detail page and the mapped title of the news. Let’s say the title of the news was “Some great title”, the so the link created would be “/news/Some-great-title/”.</span></div><div class="yiv1643737828MsoListParagraph" style=""><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"><span style="">4.<span style="font:7.0pt "Times New Roman";"> </span></span></span><span
style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">When this link is followed in the browser, OpenCms recognizes that “/news/” is in fact a detail page, and will then load the news based on the rest of the URL “/Some-great-title/”. For this there exists a title-to-id mapping table in OpenCms 8.</span></div><div class="yiv1643737828MsoListParagraph" style=""><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"><span style="">5.<span style="font:7.0pt "Times New Roman";"> </span></span></span><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">In the template used for the detail page you need to specify the container for the detail view. The content of this container will be automatically filled by the formatter used for the selected news. </span></div><div class="yiv1643737828MsoNormal"><span
style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US">Hopefully this helps a bit. Feel free to ask more questions.</span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";" lang="EN-US">Kind Regards,</span></div><div class="yiv1643737828MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";" lang="EN-US">Alex.</span></div><div class="yiv1643737828MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";"
lang="EN-US">-------------------</span></div><div class="yiv1643737828MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";" lang="EN-US">Alexander Kandzior</span></div><div class="yiv1643737828MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";" lang="EN-US">Alkacon Software GmbH - The OpenCms Experts </span></div><div
class="yiv1643737828MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";" lang="EN-US">http://www.alkacon.com - http://www.opencms.org </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:11.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";" lang="EN-US"> </span></div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><div class="yiv1643737828MsoNormal"><b><span style="font-size:10.0pt;font-family:"sans-serif";">From:</span></b><span style="font-size:10.0pt;font-family:"sans-serif";"> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On Behalf Of </b>Andrew Adams<br><b>Sent:</b> Tuesday, July 24, 2012
8:06 AM<br><b>To:</b> opencms-dev@opencms.org<br><b>Subject:</b> [opencms-dev] Detail pages</span></div></div><div class="yiv1643737828MsoNormal"> </div><div class="yiv1643737828MsoNormal"><span style="font-size:10.0pt;font-family:"sans-serif";color:#222222;background:white;">Hey all,</span></div><div><div class="yiv1643737828MsoNormal" style="background:white;"><span style="font-size:10.0pt;font-family:"sans-serif";color:#222222;"> </span></div></div><div><div class="yiv1643737828MsoNormal" style="background:white;"><span style="font-size:10.0pt;font-family:"sans-serif";color:#222222;">I was curious if there was a guide to setting up detail pages on-line. The documentation is a bit ambiguous and in all honestly I'm finding some difficulties grasping the concept within itself.</span></div></div><div><div class="yiv1643737828MsoNormal" style="background:white;"><span
style="font-size:10.0pt;font-family:"sans-serif";color:#222222;"> </span></div></div><div><div class="yiv1643737828MsoNormal" style="background:white;"><span style="font-size:10.0pt;font-family:"sans-serif";color:#222222;">What I understand so far is that at it's core you have container pages in OpenCms which has container elements; these are hooked up to templates via the "template" property. You provide this container elements with data through the use of the ADE navigator and creating structured xml content, which is formatted through the page through formatters which are specified in the content's schema. </span></div></div><div><div class="yiv1643737828MsoNormal" style="background:white;"><span style="font-size:10.0pt;font-family:"sans-serif";color:#222222;"> </span></div></div><div><div class="yiv1643737828MsoNormal" style="background:white;"><span
style="font-size:10.0pt;font-family:"sans-serif";color:#222222;">What I'm unclear on is when I use an internal link to a specific piece of content, where this goes to, what's loaded, and the use of detailpages to provide a specific formatting/template/rendering for all resources of the same type.</span></div></div><div><div class="yiv1643737828MsoNormal" style="background:white;"><span style="font-size:10.0pt;font-family:"sans-serif";color:#222222;"> </span></div></div><div><div class="yiv1643737828MsoNormal" style="background:white;"><span style="font-size:10.0pt;font-family:"sans-serif";color:#222222;">Thanks,</span></div></div><div><div class="yiv1643737828MsoNormal" style="background:white;"><span style="font-size:10.0pt;font-family:"sans-serif";color:#222222;">Andy </span></div></div></div></div></div><br>_______________________________________________<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" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br><br><br><br><br><br> </div> </div> </div></body></html>