[opencms-dev] detail page URL name problem with multiple sites

Schliemann, Kai K.Schliemann at comundus.com
Fri Nov 27 13:59:46 CET 2015


Hi Sascha,
you need a detail page for each site. So you need a .content folder and .config file in each site and configure the detail page there. The easiest way to add a detail page is via the sitemap editor. Just drag and drop a detail page to your site and it is automatically added to your .config file.

HTH
Best regards
Kai

Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von "Sascha Härtling"
Gesendet: Freitag, 27. November 2015 12:27
An: opencms-dev at opencms.org
Betreff: [opencms-dev] detail page URL name problem with multiple sites

Hi mailinglist,

i have a problem with detailpages. Let me explain:
I use OpenCms 9.5.2.
I have 2 sites and both sites have a folder abc and there a container page index.html.
Site 1 is configured to use his index.html for resource type "contact1" as detail page and site 2 is configured to use his index.html for resource type "contact2" as detail page.
Both resource types set the url via urlName mapping.

site1/abc/index.html
site2/abc/index.html

resource type contact1 mapto "contact.html"
resource type contact2 mapto "contact.html"

After generating the content the detail page url for site 1 content is correct but the detail page url for site 2 content is the same like site 1 but with suffix -0001.

site1/abc/contact.html
site2/abc/contact.html-0001

I figured out that the CmsDefaultLinkSubstitutionHandler generate the URL.
It seems that CmsObject.getDetailName search over the complete cms and not within the site.

How can i prevent this behavior?

Thanks
Sascha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20151127/8c82dac2/attachment.htm>


More information about the opencms-dev mailing list