[opencms-dev] Opencms 10 url detail content name
Patric Dosch
patric.dosch at virtual-identity.com
Tue Jan 3 18:42:44 CET 2017
Hey Lucas,
the same with two resources with the same name, but different locale.
I guess there are some topics in the mailing list for that.
This behavior is very annoying for nice URLs.
Unfortunately I don’t know a solution ☹
Regards, Patric
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Lucas Rol
Gesendet: Montag, 5. Dezember 2016 12:25
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Opencms 10 url detail content name
Hi all,
I have the following scenario using Opencms 10.0.1:
Two customized contents:
1-Name: london - Type: City - placed in: /.content/cities/ - Mapped to: /en/cities/index.html (container page-detail page).
2-Name: london - Type: Hotel - placed in: /.content/hotels/ - Mapped to: /en/hotels/index.html (container page-detail page).
Both have the title field mapped to urlname in xsd.
Once you click on each of them, the url name generated by Opencms is correct for only one of the contents (www.myplace.com/en/cities/london/<http://www.myplace.com/en/cities/london/>) and Opencms adds a suffix at the end of the name of the second content, though (www.myplace.com/en/hotels/london-001/<http://www.myplace.com/en/hotels/london-001/>). It seems as if opencms would not allow(when mapping to url) having two resources with the same name, even if they have different paths.
Is there any way to achieve this (no suffix addition, 2 contents with the same name in different paths)?
Thanks in advance.
Lucas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170103/ad76f418/attachment.htm>
More information about the opencms-dev
mailing list