[opencms-dev] Having fun with detail pages...
Georg Westenberger
g.westenberger at alkacon.com
Mon Nov 12 14:25:44 CET 2012
Hello Claus,
I can think of two possible explanations for the problem:
1 - You have accidentally configured the .content/v8news folder for
multiple resource types, not just news.
It is not possible in ADE to configure the same folder for multiple
content types. If you do it, the link generation for detail pages will
get broken.
2 - The page displaying the v8list element is not located in the
sub-sitemap in which you have configured the detail page for the type
v8news.
Detail page link generation depends on the path of the page on which the
links are going to be rendered. Detail pages will only be looked up
for the sub-sitemap which that path is in, and its ancestors. This is so
that you can have different detail pages for a type in different
sub-sitemaps.
The methods getAllDetailPages and isDetailPage don't take the current
page into account, they are used for different purposes, not for link
generation.
Kind Regards,
Georg
--
Georg Westenberger
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
More information about the opencms-dev
mailing list