Show category title on jsp page

View: New views
6 Messages — Rating Filter:   Alert me  

Show category title on jsp page

by Juan F Fernández :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello list,

 

Is there any method to show the category title through the Opencms taglib? If I use the contentshow tag, I get, as expected, the category path, but I need to show the title.

 

Greets!

 

Juan Francisco Fernández Rodríguez
Dirección de Servicios Generales y Sistemas
FUNDACIÓN ANDALUZA FONDO DE FORMACIÓN Y EMPLEO

CONSEJERÍA DE EMPLEO
Carretera de la esclusa, 11. 
Edificio Galia Puerto. Acceso A.
41011 Sevilla
Tfno.: 954 385 550   Fax: 954 915 119
Correo-e: juanffernandez@...

ADVERTENCIA LEGAL

Le informamos, como destinatario de este mensaje, que el correo electrónico y las comunicaciones por medio de Internet no permiten asegurar ni garantizar la confidencialidad de los mensajes transmitidos, así como tampoco su integridad o su correcta recepción, por lo que la FUNDACIÓN ANDALUZA FONDO DE FORMACIÓN Y EMPLEO no asume responsabilidad alguna por tales circunstancias. Si no consintiese en la utilización del correo electrónico o de las comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro conocimiento de forma inmediata.

Este mensaje va dirigido, de manera exclusiva, a su destinatario. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electrónico remitido a nuestra atención o a través del teléfono (+34) 954 385550 y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o utilización de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por ley.

 



_______________________________________________
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

Re: Show category title on jsp page

by Kai Schliemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Juan,

if you mean the property „Title“ (not category), then you can use 
<cms:property name="Title" />

 

Have a look at the Alkacon Documentation Modules for more information.

Hope this helps.

 

Regards

Kai

 

Von: opencms-dev-bounces@... [mailto:opencms-dev-bounces@...] Im Auftrag von Juan Francisco Fernández
Gesendet: Donnerstag, 29. Oktober 2009 11:32
An: 'The OpenCms mailing list'
Betreff: [opencms-dev] Show category title on jsp page

 

Hello list,

 

Is there any method to show the category title through the Opencms taglib? If I use the contentshow tag, I get, as expected, the category path, but I need to show the title.

 

Greets!

 

Juan Francisco Fernández Rodríguez
Dirección de Servicios Generales y Sistemas
FUNDACIÓN ANDALUZA FONDO DE FORMACIÓN Y EMPLEO

CONSEJERÍA DE EMPLEO
Carretera de la esclusa, 11. 
Edificio Galia Puerto. Acceso A.
41011 Sevilla
Tfno.: 954 385 550   Fax: 954 915 119
Correo-e: juanffernandez@...

ADVERTENCIA LEGAL

Le informamos, como destinatario de este mensaje, que el correo electrónico y las comunicaciones por medio de Internet no permiten asegurar ni garantizar la confidencialidad de los mensajes transmitidos, así como tampoco su integridad o su correcta recepción, por lo que la FUNDACIÓN ANDALUZA FONDO DE FORMACIÓN Y EMPLEO no asume responsabilidad alguna por tales circunstancias. Si no consintiese en la utilización del correo electrónico o de las comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro conocimiento de forma inmediata.

Este mensaje va dirigido, de manera exclusiva, a su destinatario. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electrónico remitido a nuestra atención o a través del teléfono (+34) 954 385550 y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o utilización de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por ley.

 



_______________________________________________
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

Re: Show category title on jsp page

by Juan F Fernández :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Kai,

 

I’m trying to show the title of the category selected inside my xml content. The xsd schema contains these lines:

 

<xsd:element name="Category" type="OpenCmsString" minOccurs="1" maxOccurs="unbounded" />

 

….

 

<layout element="Category" widget="CategoryWidget" configuration="category=garantias_institucionales/contratoconvenio/|keyprefix=conveniocontrato|onlyleafs=true" /> 

 

In my jsp file, if I use the contentshow tag (<cms:contentshow element="Category" />), I get the category full path:

 

/system/categories/garantias_institucionales/contratoconvenio/convenios/

 

But I want to select the title set at the category folder in /system/categories/ (Convenios in this case), as it is shown in the CategoryWidget selector. Is there any method to get it?

 

Thanks!

 


De: opencms-dev-bounces@... [mailto:opencms-dev-bounces@...] En nombre de Schliemann, Kai
Enviado el: jueves, 29 de octubre de 2009 12:16
Para: The OpenCms mailing list
Asunto: Re: [opencms-dev] Show category title on jsp page

 

Hi Juan,

if you mean the property „Title“ (not category), then you can use 
<cms:property name="Title" />

 

Have a look at the Alkacon Documentation Modules for more information.

Hope this helps.

 

Regards

Kai

 

Von: opencms-dev-bounces@... [mailto:opencms-dev-bounces@...] Im Auftrag von Juan Francisco Fernández
Gesendet: Donnerstag, 29. Oktober 2009 11:32
An: 'The OpenCms mailing list'
Betreff: [opencms-dev] Show category title on jsp page

 

Hello list,

 

Is there any method to show the category title through the Opencms taglib? If I use the contentshow tag, I get, as expected, the category path, but I need to show the title.

 

Greets!

 

Juan Francisco Fernández Rodríguez
Dirección de Servicios Generales y Sistemas
FUNDACIÓN ANDALUZA FONDO DE FORMACIÓN Y EMPLEO

CONSEJERÍA DE EMPLEO
Carretera de la esclusa, 11. 
Edificio Galia Puerto. Acceso A.
41011 Sevilla
Tfno.: 954 385 550   Fax: 954 915 119
Correo-e: juanffernandez@...

ADVERTENCIA LEGAL

Le informamos, como destinatario de este mensaje, que el correo electrónico y las comunicaciones por medio de Internet no permiten asegurar ni garantizar la confidencialidad de los mensajes transmitidos, así como tampoco su integridad o su correcta recepción, por lo que la FUNDACIÓN ANDALUZA FONDO DE FORMACIÓN Y EMPLEO no asume responsabilidad alguna por tales circunstancias. Si no consintiese en la utilización del correo electrónico o de las comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro conocimiento de forma inmediata.

Este mensaje va dirigido, de manera exclusiva, a su destinatario. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electrónico remitido a nuestra atención o a través del teléfono (+34) 954 385550 y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o utilización de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, están prohibidas por ley.

 



_______________________________________________
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

Re: Show category title on jsp page

by Nacho Fernández Orellana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Juan Francisco,

Try <cms:property name="Title" file="_category_full_path_" />. This works due to categories being simply folders. Hope this helps. Greetings,

Nacho Fernandez.

------------------
Hola Juan Francisco,

Prueba <cms:property name="Title" file="_ruta_completa_de_la_categoria_" />. Eso funciona ya que las categorías son simples carpetas. Espero que esto te ayude. Saludos,

Nacho Fernandez.


_______________________________________________
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

Re: Show category title on jsp page

by Juan F Fernández :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Yep, that is just what I was looking for. Now I feel a bit stupid hehehe, I was trying to do some difficult operations to get it, when it was as simple as you have explained.

 

Many thanks (Muchísimas gracias)!

 

Greetings!


De: opencms-dev-bounces@... [mailto:opencms-dev-bounces@...] En nombre de Nacho Fernández Orellana
Enviado el: jueves, 29 de octubre de 2009 13:05
Para: The OpenCms mailing list
Asunto: Re: [opencms-dev] Show category title on jsp page

 

Hi Juan Francisco,

Try <cms:property name="Title" file="_category_full_path_" />. This works due to categories being simply folders. Hope this helps. Greetings,

Nacho Fernandez.

------------------
Hola Juan Francisco,

Prueba <cms:property name="Title" file="_ruta_completa_de_la_categoria_" />. Eso funciona ya que las categorías son simples carpetas. Espero que esto te ayude. Saludos,

Nacho Fernandez.



_______________________________________________
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

Re: Show category title on jsp page

by Nacho Fernández Orellana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No need to feel stupid, I was programming myself a taglib to access category properties when found this solution. Greetings,

Nacho Fernandez.


_______________________________________________
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