Hi, hel-o wrote: > Hi, > > > Anca Paula Luca wrote: >> >> Hi Hel, >> >> thanks for reporting this behaviour! >> >> Of what I experimented just now, this seems to be caused by the REST API >> (used >> by the tree) for getting pages and the way it uses the passed "parent" >> parameter. Specifically, it does not interpret the value of the document >> parent >> field wrt the document's space. >> >> I see 2 solutions: >> 1/ either we change the panel to set the parent field to a fully qualified >> name >> (when a user inserts only a document name in the parent field, we append >> the space) >> 2/ either we fix the REST API. >> >> Solution 1 might cause problems when it will come to multiwikis, when the >> parent >> can be prefixed by the wiki name as well (wiki:Space.Page). >> >> Or: >> 3/ we change the parent-child relation in the explorer tree so that we >> make it >> survive such situations. >> >> >> Happy coding, >> Anca Luca >> >> > > Shouldn't there be a general concept for that in XWiki, wether its okay when > you only use Page in links or that Wiki:Space.Page is the only way thats > accepted?
There is a general concept: _in links_, everything is accepted and resolved relative to the current context (document). However, what this case is about is setting the parent field to a relative reference, which should not cause any problem as long as it is always resolved correctly wrt the document. > > Don't know but it seems to me that this example shows there could be a bunch > of problems if different syntax is allowed. Wikilinks in different syntaxes is still an open subject, afaik. Happy XWiki-ing, Anca Luca > > hel. > > > ----- > [email protected] > _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
