<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      as far as I can see different sites, .configs, languages,
      online/offline ... etc. don't matter (running Opencms 9.0.2)<br>
      NAME in cms_offline_urlname_mappings and
      cms_online_urlname_mappings always is unique.<br>
      <br>
      Same page titles for different detailpage configurations always
      end up in -00001, -00002 ...<br>
      I would be happy to know if theres a way to avoid this as well :-)<br>
      <br>
      Best,<br>
      Tobias<br>
      <br>
      Am 03.12.2015 um 16:08 schrieb "Sascha Härtling":<br>
    </div>
    <blockquote
cite="mid:trinity-f9323d0a-6a56-4af0-87c0-56873edf4448-1449155285491@3capp-gmx-bs40"
      type="cite">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <div>Hi Kai,</div>
        <div> </div>
        <div>its also in the offline project. I tested all configuration
          options in .config but nothing helps with this problem.</div>
        <div>I keep searching.</div>
        <div> </div>
        <div>Regards</div>
        <div>Sascha</div>
        <div> 
          <div name="quote" style="margin:10px 5px 5px 10px; padding:
            10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap:
            break-word; -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space;">
            <div style="margin:0 0 10px 0;"><b>Gesendet:</b> Donnerstag,
              03. Dezember 2015 um 13:12 Uhr<br>
              <b>Von:</b> "Schliemann, Kai"
              <a class="moz-txt-link-rfc2396E" href="mailto:K.Schliemann@comundus.com"><K.Schliemann@comundus.com></a><br>
              <b>An:</b> "The OpenCms mailing list"
              <a class="moz-txt-link-rfc2396E" href="mailto:opencms-dev@opencms.org"><opencms-dev@opencms.org></a><br>
              <b>Betreff:</b> Re: [opencms-dev] detail page URL name
              problem with multiple sites</div>
            <div name="quoted-content"><!--p.MsoNormal, li.MsoNormal, div.MsoNormal {
        margin: 0.0cm;
        font-size: 12.0pt;
        font-family: "Times New Roman" , serif;
}
a:link, span.MsoHyperlink {
        color: blue;
        text-decoration: underline;
}
a:visited, span.MsoHyperlinkFollowed {
        color: purple;
        text-decoration: underline;
}
p.msonormal0, li.msonormal0, div.msonormal0 {
        margin-right: 0.0cm;
        margin-left: 0.0cm;
        font-size: 12.0pt;
        font-family: "Times New Roman" , serif;
}
span.E-MailFormatvorlage18 {
        font-family: Calibri , sans-serif;
        color: rgb(31,73,125);
}
*.MsoChpDefault {
        font-size: 10.0pt;
}
div.WordSection1 {
        page: WordSection1;
}
-->
              <div>
                <div class="WordSection1">
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);">Hi Sascha,</span></p>
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);">me again.</span></p>
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);">Is this just in Online project? </span><span
                      style="font-size: 11.0pt;font-family: Calibri ,
                      sans-serif;color: rgb(31,73,125);">If so, it could
                      be a Flex Cache thing.</span></p>
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);">Here are the directives:</span></p>
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);"><a moz-do-not-send="true"
href="http://documentation.opencms.org/opencms-documentation/caching-in-opencms/the-flex-cache/index.html#2"
                        target="_blank">http://documentation.opencms.org/opencms-documentation/caching-in-opencms/the-flex-cache/index.html#2</a></span></p>
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);">Maybe you need to use “site” as
                      directive.</span></p>
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);"> </span></p>
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);">HTH</span></p>
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);">Best regards</span></p>
                  <p class="MsoNormal"><span style="font-size:
                      11.0pt;font-family: Calibri , sans-serif;color:
                      rgb(31,73,125);">Kai</span></p>
                  <p class="MsoNormal"><span> </span></p>
                  <div>
                    <div style="border: none;border-top: solid
                      rgb(225,225,225) 1.0pt;padding: 3.0pt 0.0cm 0.0cm
                      0.0cm;">
                      <p class="MsoNormal"><b><span style="font-size:
                            11.0pt;font-family: Calibri , sans-serif;">Von:</span></b><span
                          style="font-size: 11.0pt;font-family: Calibri
                          , sans-serif;">
                          <a class="moz-txt-link-abbreviated" href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>
                          [<a class="moz-txt-link-freetext" href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</a>] <b>Im
                            Auftrag von </b>"Sascha Härtling"<br>
                          <b>Gesendet:</b> Donnerstag, 3. Dezember 2015
                          10:01<br>
                          <b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
                          <b>Betreff:</b> Re: [opencms-dev] detail page
                          URL name problem with multiple sites</span></p>
                    </div>
                  </div>
                  <p class="MsoNormal"> </p>
                  <div>
                    <div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">Thanks
                            for your reply,</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;"> </span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">this
                            is exactly what i done.</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">This
                            morning i have made a clean 9.5.2 install
                            with 2 sites configured. One resource type.</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;"> </span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">Each
                            site has a .content folder with a .config
                            file.</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">Each
                            site has a folder "abc" with a container
                            page inside.</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">i
                            configured the detail page for each site to
                            point to the abc folder with container page.</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">In
                            every .content folder i creaded a resource
                            of resource type test_00001.xml and set the
                            url via urlName mapping to page.html.</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;"> </span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">The
                            site where i created the resource first
                            generates the correct url
                            /site1/abc/page.html.</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">The
                            second site generates the url
                            /site2/abc/page.html-00001.</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;"> </span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">It
                            does'nt matter even i changed the folder or
                            used a second resource type. Still the same
                            behavior.</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;"> </span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">What
                            i am doing wrong?</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;"> </span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">Thanks</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;">Sascha</span></p>
                      </div>
                      <div>
                        <p class="MsoNormal"><span style="font-size:
                            9.0pt;font-family: Verdana , sans-serif;"> 
                          </span></p>
                        <div style="border: none;border-left: solid
                          rgb(195,217,229) 1.5pt;padding: 0.0cm 0.0cm
                          0.0cm 8.0pt;margin-left: 7.5pt;margin-top:
                          7.5pt;margin-right: 3.75pt;margin-bottom:
                          3.75pt;">
                          <div style="margin-bottom: 7.5pt;">
                            <p class="MsoNormal"><b><span
                                  style="font-size: 9.0pt;font-family:
                                  Verdana , sans-serif;">Gesendet:</span></b><span
                                style="font-size: 9.0pt;font-family:
                                Verdana , sans-serif;"> Freitag, 27.
                                November 2015 um 13:59 Uhr<br>
                                <b>Von:</b> "Schliemann, Kai" <<a
                                  moz-do-not-send="true"
                                  href="K.Schliemann@comundus.com"
                                  target="_parent"><a class="moz-txt-link-abbreviated" href="mailto:K.Schliemann@comundus.com">K.Schliemann@comundus.com</a></a>><br>
                                <b>An:</b> "The OpenCms mailing list"
                                <<a moz-do-not-send="true"
                                  href="opencms-dev@opencms.org"
                                  target="_parent">opencms-dev@opencms.org</a>><br>
                                <b>Betreff:</b> Re: [opencms-dev] detail
                                page URL name problem with multiple
                                sites</span></p>
                          </div>
                          <div>
                            <div>
                              <div>
                                <p class="MsoNormal"><span
                                    style="font-size:
                                    11.0pt;font-family: Calibri ,
                                    sans-serif;color: rgb(31,73,125);">Hi
                                    Sascha,</span></p>
                                <p class="MsoNormal"><span
                                    style="font-size:
                                    11.0pt;font-family: Calibri ,
                                    sans-serif;color: rgb(31,73,125);">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.</span></p>
                                <p class="MsoNormal"><span
                                    style="font-size:
                                    11.0pt;font-family: Calibri ,
                                    sans-serif;color: rgb(31,73,125);"> </span></p>
                                <p class="MsoNormal"><span
                                    style="font-size:
                                    11.0pt;font-family: Calibri ,
                                    sans-serif;color: rgb(31,73,125);">HTH</span></p>
                                <p class="MsoNormal"><span
                                    style="font-size:
                                    11.0pt;font-family: Calibri ,
                                    sans-serif;color: rgb(31,73,125);">Best
                                    regards</span></p>
                                <p class="MsoNormal"><span
                                    style="font-size:
                                    11.0pt;font-family: Calibri ,
                                    sans-serif;color: rgb(31,73,125);">Kai</span></p>
                                <p class="MsoNormal"><span
                                    style="font-size: 9.0pt;font-family:
                                    Verdana , sans-serif;"> </span></p>
                                <div>
                                  <div style="border: none;border-top:
                                    solid rgb(225,225,225)
                                    1.0pt;padding: 3.0pt 0.0cm 0.0cm
                                    0.0cm;">
                                    <p class="MsoNormal"><b><span
                                          style="font-size:
                                          11.0pt;font-family: Calibri ,
                                          sans-serif;">Von:</span></b><span
                                        style="font-size:
                                        11.0pt;font-family: Calibri ,
                                        sans-serif;"> <a
                                          moz-do-not-send="true"
                                          href="opencms-dev-bounces@opencms.org"
                                          target="_parent"><a class="moz-txt-link-abbreviated" href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a></a>
                                        [<a moz-do-not-send="true"
                                          href="opencms-dev-bounces@opencms.org"
                                          target="_parent">mailto:opencms-dev-bounces@opencms.org</a>]
                                        <b>Im Auftrag von </b>"Sascha
                                        Härtling"<br>
                                        <b>Gesendet:</b> Freitag, 27. </span><span
                                        style="font-size:
                                        11.0pt;font-family: Calibri ,
                                        sans-serif;">November 2015 12:27<br>
                                        <b>An:</b> </span><span
                                        style="font-size:
                                        11.0pt;font-family: Calibri ,
                                        sans-serif;"><a
                                          moz-do-not-send="true"
                                          href="opencms-dev@opencms.org"
                                          target="_parent"><span><a class="moz-txt-link-abbreviated" href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a></span></a></span><br>
                                      <span style="font-size:
                                        11.0pt;font-family: Calibri ,
                                        sans-serif;"><b>Betreff:</b>
                                        [opencms-dev] detail page URL
                                        name problem with multiple sites</span></p>
                                  </div>
                                </div>
                                <p class="MsoNormal"><span
                                    style="font-size: 9.0pt;font-family:
                                    Verdana , sans-serif;"> </span></p>
                                <div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">Hi mailinglist,</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;"> </span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">i have a problem
                                        with detailpages. Let me
                                        explain:</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">I use OpenCms
                                        9.5.2.</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">I have 2 sites and
                                        both sites have a folder abc and
                                        there a container page
                                        index.html.</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">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.</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">Both resource types
                                        set the url via urlName mapping.</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;"> </span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">site1/abc/index.html</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">site2/abc/index.html</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;"> </span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">resource type
                                        contact1 mapto "contact.html"</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">resource type
                                        contact2 mapto "contact.html"</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;"> </span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">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.</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;"> </span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">site1/abc/contact.html</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">site2/abc/contact.html-0001</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;"> </span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">I figured out that
                                        the CmsDefaultLinkSubstitutionHandler
                                        generate the URL.</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">It seems that
                                        CmsObject.getDetailName search
                                        over the complete cms and not
                                        within the site.</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;"> </span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">How can i prevent
                                        this behavior?</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;"> </span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">Thanks</span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"><span
                                        style="font-size:
                                        9.0pt;font-family: Verdana ,
                                        sans-serif;">Sascha</span></p>
                                  </div>
                                </div>
                              </div>
                              <p class="MsoNormal"><span
                                  style="font-size: 9.0pt;font-family:
                                  Verdana , sans-serif;">_______________________________________________
                                  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 <a
                                    moz-do-not-send="true"
                                    href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"
                                    target="_blank">
                                    <a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a></a></span></p>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                _______________________________________________ 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 <a moz-do-not-send="true"
                  href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"
                  target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>



</pre>
    </blockquote>
    <br>
  </body>
</html>