<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=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><title>access content in main.jsp (container page template)</title><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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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";
        color:black;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;
        color:black;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.shorttext
        {mso-style-name:short_text;}
span.hps
        {mso-style-name:hps;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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 bgcolor=white lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hey Peter,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I did not understand. I'll try it differently. I want to offer some settings in the header.<br><br>Your template 3 has to its own content type. In my case, I would like to do that in my Article Content Type, this is indeed an element in the container. Therefore, I have only access to the content in the formatter, and not already in the container or page, right?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Actually I wanted to do in the Article, because the settings are inherited.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Greetings, Patric<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>Im Auftrag von </b>Peter Sreckovic<br><b>Gesendet:</b> Dienstag, 16. August 2011 15:10<br><b>An:</b> opencms-dev@opencms.org<br><b>Betreff:</b> Re: [opencms-dev] access content in main.jsp (container pagetemplate)<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Patric,<br><br>if I get you right then the URI of the container page is passed to your function providing class instead of the URI of your content type within the container.<br><br>In this case you might want to have a look at the already released OAMP Webform and / or Survey modules (as an example how to fix this).<br><br>Perhaps you have to add a new constructor and pass the correct URI in the formatter JSP.<br><br><br>Kind regards,<br>Peter<br><br><br>Am 16.08.2011 14:57, schrieb patric dosch: <o:p></o:p></p><p><span style='font-family:"Calibri","sans-serif"'>Hey List!</span><o:p></o:p></p><p><span lang=EN style='font-family:"Calibri","sans-serif"'>I</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>would like to offer</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>a configurable</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>header</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>for</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>my</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>site</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>(image</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>and</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>slogan).</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>Until</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>now I could</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>access all the content</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>in the template.</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>With the new</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>formatter-technique, I</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>just do not know</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>how.<br><br>I</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>would</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>like to</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>define these</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>fields</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>in my</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>article-content type,</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>but</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>read</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>in</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>the container page template (main.jsp).</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>Is there</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>perhaps</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>another</span><span lang=EN> </span><span lang=EN style='font-family:"Calibri","sans-serif"'>possibility?</span><o:p></o:p></p><p><span lang=EN style='font-family:"Calibri","sans-serif"'>Greetings, Patric</span><o:p></o:p></p><p class=MsoNormal><br><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:darkgray'>_____________________________________________________________________<br><br>Vorstand: Ralf Heller, Udo Mobes <br>Vorsitzende des Aufsichtsrates: Kirsten Heller <br>Sitz der Gesellschaft: Gruenwaelderstrasse 10-14, D-79098 Freiburg <br>Amtsgericht Freiburg HRB 6218<br><br>Versand am 16.08.2011 14:57 von dosch patric<br>Validation-Code: 2256150024141<br></span><br><br><br><br><o:p></o:p></p><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>This mail is sent to you from the opencms-dev mailing list<o:p></o:p></pre><pre>To change your list options, or to unsubscribe from the list, please visit<o:p></o:p></pre><pre><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><o:p></o:p></pre><p class=MsoNormal><br><br><o:p></o:p></p><pre>-- <o:p></o:p></pre><pre>Peter Sreckovic<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>-------------------<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Alkacon Software GmbH - The OpenCms Experts<o:p></o:p></pre><pre>Peter Sreckovic<o:p></o:p></pre><pre>An der Wachsfabrik 13<o:p></o:p></pre><pre>50996 Koeln, DE<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Tel: +49 (0)2236 3826-0<o:p></o:p></pre><pre>Fax: +49 (0)2236 3826-20<o:p></o:p></pre><pre>Email: <a href="mailto:p.sreckovic@alkacon.com">p.sreckovic@alkacon.com</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre><a href="http://www.alkacon.com">http://www.alkacon.com</a><o:p></o:p></pre><pre><a href="http://www.opencms.org">http://www.opencms.org</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB 54613 <o:p></o:p></pre></div></body></html>