[opencms-dev] access content in main.jsp (container pagetemplate)
Peter Sreckovic
p.sreckovic at alkacon.com
Tue Aug 16 15:56:23 CEST 2011
Hi Patric,
to dynamically include additional javascript or CSS in the header you
should use the headinclude tag as described here:
http://www.opencms-wiki.org/The_OpenCms_8_Demo_Template_Modules_in_Detail
on page 31 and following
Kind regards,
Peter
Am 16.08.2011 15:44, schrieb patric dosch:
>
> Hey Peter,
>
> I did not understand. I'll try it differently. I want to offer some
> settings in the header.
>
> 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?
>
> Actually I wanted to do in the Article, because the settings are
> inherited.
>
> Greetings, Patric
>
> *Von:*opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] *Im Auftrag von *Peter Sreckovic
> *Gesendet:* Dienstag, 16. August 2011 15:10
> *An:* opencms-dev at opencms.org
> *Betreff:* Re: [opencms-dev] access content in main.jsp (container
> pagetemplate)
>
> Hi Patric,
>
> 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.
>
> 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).
>
> Perhaps you have to add a new constructor and pass the correct URI in
> the formatter JSP.
>
>
> Kind regards,
> Peter
>
>
> Am 16.08.2011 14:57, schrieb patric dosch:
>
> Hey List!
>
> Iwould like to offera
> configurableheaderformysite(imageandslogan).Untilnow I couldaccess all
> the contentin the template.With the newformatter-technique, Ijust do
> not knowhow.
>
> Iwouldlike todefine thesefieldsin myarticle-content type,butreadinthe
> container page template (main.jsp).Is thereperhapsanotherpossibility?
>
> Greetings, Patric
>
>
> _____________________________________________________________________
>
> Vorstand: Ralf Heller, Udo Mobes
> Vorsitzende des Aufsichtsrates: Kirsten Heller
> Sitz der Gesellschaft: Gruenwaelderstrasse 10-14, D-79098 Freiburg
> Amtsgericht Freiburg HRB 6218
>
> Versand am 16.08.2011 14:57 von dosch patric
> Validation-Code: 2256150024141
>
>
>
>
>
> _______________________________________________
> 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
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
> --
> 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:p.sreckovic at alkacon.com <mailto:p.sreckovic at alkacon.com>
>
> http://www.alkacon.com
> http://www.opencms.org
>
> Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB 54613
>
>
> _______________________________________________
> 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
> http://lists.opencms.org/mailman/listinfo/opencms-dev
--
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: p.sreckovic at alkacon.com
http://www.alkacon.com
http://www.opencms.org
Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB 54613
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110816/ae04d373/attachment.htm>
More information about the opencms-dev
mailing list