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

Schliemann, Kai K.Schliemann at comundus.com
Thu Dec 3 13:12:14 CET 2015


Hi Sascha,
me again.
Is this just in Online project? If so, it could be a Flex Cache thing.
Here are the directives:
http://documentation.opencms.org/opencms-documentation/caching-in-opencms/the-flex-cache/index.html#2
Maybe you need to use “site” as directive.

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: Donnerstag, 3. Dezember 2015 10:01
An: opencms-dev at opencms.org
Betreff: Re: [opencms-dev] detail page URL name problem with multiple sites

Thanks for your reply,

this is exactly what i done.
This morning i have made a clean 9.5.2 install with 2 sites configured. One resource type.

Each site has a .content folder with a .config file.
Each site has a folder "abc" with a container page inside.
i configured the detail page for each site to point to the abc folder with container page.
In every .content folder i creaded a resource of resource type test_00001.xml and set the url via urlName mapping to page.html.

The site where i created the resource first generates the correct url /site1/abc/page.html.
The second site generates the url /site2/abc/page.html-00001.

It does'nt matter even i changed the folder or used a second resource type. Still the same behavior.

What i am doing wrong?

Thanks
Sascha

Gesendet: Freitag, 27. November 2015 um 13:59 Uhr
Von: "Schliemann, Kai" <K.Schliemann at comundus.com<mailto:K.Schliemann at comundus.com>>
An: "The OpenCms mailing list" <opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>>
Betreff: Re: [opencms-dev] detail page URL name problem with multiple sites
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> [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<mailto: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
_______________________________________________ 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/20151203/70b6e3b6/attachment.htm>


More information about the opencms-dev mailing list