Hi Hamster,

On Dec 20, 2011, at 9:30 AM, Hamster wrote:

> I have enabled WikiWords, but there's something strange going on (in my
> opinion).
> 
> I have created a Space called "Engineering". In this space I create a Page
> called "GeneralMotors".
> (...xwiki/bin/view/Engineering/GeneralMotors) In another space, called
> "Sales", I created a page called "OurProducts" where I put the WikiWords
> "GeneralMotors". XWiki does not recognize the existing GeneralMotors page in
> the "Engineering Space", it want's to create a Wiki Page "GeneralMotors" in
> the "Sales Space"!
> 
> I don't think that this should be happening, the WikiWord should refer to
> the existing page "GeneralMotors" in the "Engineering Space"!
> 
> Have I done something wrong? Are WikiWords "restricted" to the Space where
> they are created? Do sub-pages influence WikiWords in any way?

Indeed this is a current limitation. When a wikiword is recognized the link 
that is automatically created points to the current space. There's no searching 
in the whole wiki for links that would exist with the same name.

That would be possible to do based on the backlinks that we store in the DB but 
there would be a few issues:
* It would slow down the wikiword feature a lot, unless we store all links in 
memory
* We would need somehow to handle the case where there are several pages named 
the same but in different spaces

You could open a jira issue about this if you want. 

ATM if you need to reference a page in another space you'll need to use the 
wiki syntax for it, i.e. [[OtherSpace.<WikiWord>]] (in XWiki Syntax 2.0+).

Thanks
-Vincent
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to