[opencms-dev] Title for detail pages

Schliemann, Kai K.Schliemann at comundus.com
Mon Sep 2 18:25:01 CEST 2019

Hi Fabian,

I guess "opencms.title" shoud work in older OpenCms versions. See https://documentation.opencms.org/javadoc/tld/cms/info.html.

The title of the document that should be used for the HTML title tag. This is useful for container detail pages, in which case it will return the Title of the detail, not the container page. Otherwise it just returns the value of the Title property.

I am not sure, but I think you can use it like this:

<title><cms:info property="opencms.title" /></title>

Best regards

Von: opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org> Im Auftrag von fhsubscriptions at componio.net
Gesendet: Montag, 2. September 2019 13:55
An: 'The OpenCms mailing list' <opencms-dev at opencms.org>
Betreff: [opencms-dev] Title for detail pages

Hi list,

Every now and then a customer wants to have a page title defined by the detail view content for the detail page (dynamic page title if you want). Is there a quick solution for <=10.5 to extract this information in the HTML head section?

I know about the meta mappings in 11 but this is for the given project not an option.

Many thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20190902/6e79596c/attachment.html>

More information about the opencms-dev mailing list