Hi, for some types of documents published on XWiki we would like to use naming convention where there is a major version included in a name of the document e.g. 'SomeSpace.Document-0.1'. The problem is that the XWiki then resolves it like this 'SomeSpace.Document-0/1' instead of expected 'SomeSpace/Document-0.1'. I would like to ask whether there is a specific reason why name of Web(Space) is substringed from the beginning to the last position of '.' and not the first position of '.'? Thank you, Jiri.
I tried to do use indexOf instead of lastIndexOf on several places in the source code (see the attached patch) and the Web/Doc names seems to be resolved resolved correctly, the only remaining problem is with rendering of links which requires you to always specify Web when writing a link to this kind of dotted document name. However it is an acceptable compromise for now, I would say. What do you think? Jiri. On Tue, 28 Jun 2005 08:47:01 +0200 (CEST), you wrote:
Hi,
for some types of documents published on XWiki we would like to use naming convention where there is a major version included in a name of the document e.g. 'SomeSpace.Document-0.1'. The problem is that the XWiki then resolves it like this 'SomeSpace.Document-0/1' instead of expected 'SomeSpace/Document-0.1'. I would like to ask whether there is a specific reason why name of Web(Space) is substringed from the beginning to the last position of '.' and not the first position of '.'?
Thank you, Jiri.
Hi Jiri, Sorry for the late response.. This is going to cause some issues because it will break the way it is currently handled. I've seen quite a lot of cases where space names have dots in them. For example [MySpace.Private.MyDoc] In this case it's nicer that the space is MySpace.Private I think we are kind of stuck here.. because changing it in to something else will break existing installs. I'm not really sure what should be done.. Maybe you can have a setting in xwiki.cfg or in the preferences of the wiki to say how it should be handled Ludovic Jiri Luzny a écrit :
I tried to do use indexOf instead of lastIndexOf on several places in the source code (see the attached patch) and the Web/Doc names seems to be resolved resolved correctly, the only remaining problem is with rendering of links which requires you to always specify Web when writing a link to this kind of dotted document name. However it is an acceptable compromise for now, I would say. What do you think?
Jiri.
On Tue, 28 Jun 2005 08:47:01 +0200 (CEST), you wrote:
Hi,
for some types of documents published on XWiki we would like to use naming convention where there is a major version included in a name of the document e.g. 'SomeSpace.Document-0.1'. The problem is that the XWiki then resolves it like this 'SomeSpace.Document-0/1' instead of expected 'SomeSpace/Document-0.1'. I would like to ask whether there is a specific reason why name of Web(Space) is substringed from the beginning to the last position of '.' and not the first position of '.'?
Thank you, Jiri.
------------------------------------------------------------------------
-- You receive this message as a subscriber of the xwiki-dev@objectweb.org mailing list. To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
I see the problem of having both variants at once. I also think to have a global config what variant is preferred seems to be the only way... Will create a JIRA issue. Thank you, Jiri. On Thu, 30 Jun 2005 12:11:17 +0200 (CEST), you wrote:
Hi Jiri,
Sorry for the late response.. This is going to cause some issues because it will break the way it is currently handled. I've seen quite a lot of cases where space names have dots in them.
For example
[MySpace.Private.MyDoc]
In this case it's nicer that the space is MySpace.Private
I think we are kind of stuck here.. because changing it in to something else will break existing installs. I'm not really sure what should be done.. Maybe you can have a setting in xwiki.cfg or in the preferences of the wiki to say how it should be handled
Ludovic
Jiri Luzny a écrit :
I tried to do use indexOf instead of lastIndexOf on several places in the source code (see the attached patch) and the Web/Doc names seems to be resolved resolved correctly, the only remaining problem is with rendering of links which requires you to always specify Web when writing a link to this kind of dotted document name. However it is an acceptable compromise for now, I would say. What do you think?
Jiri.
On Tue, 28 Jun 2005 08:47:01 +0200 (CEST), you wrote:
Hi,
for some types of documents published on XWiki we would like to use naming convention where there is a major version included in a name of the document e.g. 'SomeSpace.Document-0.1'. The problem is that the XWiki then resolves it like this 'SomeSpace.Document-0/1' instead of expected 'SomeSpace/Document-0.1'. I would like to ask whether there is a specific reason why name of Web(Space) is substringed from the beginning to the last position of '.' and not the first position of '.'?
Thank you, Jiri.
------------------------------------------------------------------------
-- You receive this message as a subscriber of the xwiki-dev@objectweb.org mailing list. To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
participants (2)
-
Jiri Luzny -
Ludovic Dubost