<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Patric,<br>
<br>
to dynamically include additional javascript or CSS in the header
you should use the headinclude tag as described here:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.opencms-wiki.org/The_OpenCms_8_Demo_Template_Modules_in_Detail">http://www.opencms-wiki.org/The_OpenCms_8_Demo_Template_Modules_in_Detail</a><br>
<br>
on page 31 and following<br>
<br>
<br>
Kind regards,<br>
Peter<br>
<br>
<br>
Am 16.08.2011 15:44, schrieb patric dosch:
<blockquote
cite="mid:5BB0C5BEFECA11468B40FB51F7856E230477EAA6@MAIL1.virtual-identity.net"
type="cite">
<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]-->
<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">
<a class="moz-txt-link-abbreviated" href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>
[<a class="moz-txt-link-freetext" href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</a>] <b>Im Auftrag
von </b>Peter Sreckovic<br>
<b>Gesendet:</b> Dienstag, 16. August 2011 15:10<br>
<b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><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
style="font-family:"Calibri","sans-serif""
lang="EN">I</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">would like to offer</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif"" lang="EN">a
configurable</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">header</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">for</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">my</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">site</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">(image</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">and</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">slogan).</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">Until</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">now I could</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">access all the content</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif"" lang="EN">in
the template.</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">With the new</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif"" lang="EN">formatter-technique,
I</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">just do not know</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif"" lang="EN">how.<br>
<br>
I</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">would</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">like to</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">define these</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif"" lang="EN">fields</span><span
lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">in my</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">article-content type,</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif"" lang="EN">but</span><span
lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">read</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">in</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">the container page template (main.jsp).</span><span
lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">Is there</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">perhaps</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">another</span><span lang="EN"> </span><span
style="font-family:"Calibri","sans-serif""
lang="EN">possibility?</span><o:p></o:p></p>
<p><span
style="font-family:"Calibri","sans-serif""
lang="EN">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 moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:p.sreckovic@alkacon.com">p.sreckovic@alkacon.com</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.alkacon.com">http://www.alkacon.com</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Peter Sreckovic
-------------------
Alkacon Software GmbH - The OpenCms Experts
Peter Sreckovic
An der Wachsfabrik 13
50996 Koeln, DE
Tel: +49 (0)2236 3826-0
Fax: +49 (0)2236 3826-20
Email: <a class="moz-txt-link-abbreviated" href="mailto:p.sreckovic@alkacon.com">p.sreckovic@alkacon.com</a>
<a class="moz-txt-link-freetext" href="http://www.alkacon.com">http://www.alkacon.com</a>
<a class="moz-txt-link-freetext" href="http://www.opencms.org">http://www.opencms.org</a>
Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB 54613 </pre>
</body>
</html>