[opencms-dev] Getting resource type in template

Schliemann, Kai K.Schliemann at comundus.com
Tue Aug 24 13:44:38 CEST 2010


H Yves,

have a look into the boxes.jsp in one of the TemplateTwo modules. They are reading content depending on their resource type id. This id is the id defined in the opencms-modules.xml.

 

HTH.

 

Regards

Kai

 

Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Yves Glodt
Gesendet: Dienstag, 24. August 2010 13:08
An: The OpenCms mailing list
Betreff: [opencms-dev] Getting resource type in template

 

Hi,

is there an OpenCms-ish way to get the resource type of the currently displayed resource? a c:if comes to mind... ?

E.g. I have generic xml content which gets a different treatment in my template than the xml pages.

Best regards,
Yves

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100824/292b94b4/attachment.htm>


More information about the opencms-dev mailing list