[opencms-dev] Detail-Page resource
Patric Dosch
patric.dosch at virtual-identity.com
Thu Jan 26 11:36:12 CET 2017
Hey Alex,
at the needed time I only have DetailPage-resource itself, we use that to read the “Title” from the linked resource and have to know if the linked resource is a DetailPage-resource so we have to read the xmlcontent or an detailpage (or other) so we only need to read the Title-Property.
>> http://documentation.opencms.org/javadoc/core/org/opencms/jsp/util/CmsJspStandardContextBean.html#isDetailPageAvailable()
So I am not sure to have all the information the method need.
And currently (OpenCms 9.0.1) I use org.opencms.ade.detailpage.CmsSitemapDetailPageFinder#getAllDetailPages.
But there seems no real cache and a lot of synchronized Methods that crashed your JVM.
In OpenCms 10.5. the methods seems better.
But while org.opencms.ade.configuration.CmsADEManager#isDetailPage has a nice cache =>
org.opencms.ade.configuration.CmsConfigurationCache#isDetailPage (https://github.com/alkacon/opencms-core/blob/branch_10_5_x/src/org/opencms/ade/configuration/CmsConfigurationCache.java#LC268)
the method org.opencms.ade.configuration.CmsADEManager#getDetailPages still do a lot of work => org.opencms.ade.configuration.CmsADEConfigCacheState#getDetailPages (https://github.com/alkacon/opencms-core/blob/branch_10_5_x/src/org/opencms/ade/configuration/CmsADEConfigCacheState.java#LC331) – but maybe I misunderstood the cache-magic?
Regards, Patric
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Alex Kandzior
Gesendet: Dienstag, 24. Januar 2017 20:04
An: The OpenCms mailing list <opencms-dev at opencms.org>
Betreff: Re: [opencms-dev] Detail-Page resource
Maybe one of these methods can help:
http://documentation.opencms.org/javadoc/core/org/opencms/jsp/util/CmsJspStandardContextBean.html#isDetailPageAvailable()
Kind regards,
Alex.
-------------------
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Am 24.01.2017 um 17:26 schrieb Patric Dosch <patric.dosch at virtual-identity.com<mailto:patric.dosch at virtual-identity.com>>:
Hey list,
is there an easy way to know, it a given resource is a DetailPage-resource, e.g. an event?
And I don’t mean org.opencms.ade.configuration.CmsADEManager#isDetailPage, that is the event-overview.
I’m looking for the event itself ;)
Regards, Patric
Patric Dosch
Senior Developer
Virtual Identity AG
Grünwälderstraße 10-14
79098 Freiburg
t +49 761 20758-442
f +49 761 20758-01
patric.dosch at virtual-identity.com<mailto:patric.dosch at virtual-identity.com>
http://www.virtual-identity.com<http://www.virtual-identity.com/>
Freiburg | München | Wien
________________________________
Virtual Identity AG
Grünwälderstraße 10-14
79098 Freiburg
Amtsgericht Freiburg, HRB 6218
Vorstand: Ralf Heller
Vorsitzende des Aufsichtsrates: Kirsten Heller
Umsatzsteuer-ID: DE208002218
_______________________________________________
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/cgi-bin/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170126/607f387a/attachment.htm>
More information about the opencms-dev
mailing list