Hi Guillaume,
On 30 Jul 2015 at 15:57:21, Guillaume Lerouge
(guillaume@xwiki.com(mailto:guillaume@xwiki.com)) wrote:
Hi,
I'd like to make sure I'm understanding things correctly before commenting
further. Please see below.
On Wed, Jul 29, 2015 at 5:09 PM, vincent(a)massol.net
wrote:
Hi devs,
I had created JIRA issue
http://jira.xwiki.org/browse/XWIKI-12304 entitled
"Make wanted wiki links create Nested Documents” but I’ve brainstormed with
Edy and we don’t agree about it anymore :)
We’d like to propose that when the user edits a document using the wiki
editor then he’s using the Nested Spaces paradigm (and thus uses “WebHome”
to create links to Space homes) and when he edits using the WYSIWYG editor
he uses the Nested Document paradigm (no Space concept, only create WebHome
documents unless he’s an advanced user).
Let's take an example. Say I'm on page .../A/B/C/ (so that's
"A.B.C.WebHome") and I want to create "D". What would happen with
your
proposal is this:
- In WYSIWYG mode, I'll create a link to a new page called "D" and it
will automatically create a link to “A.B.C.D.WebHome"
correct
- In Wiki mode, several possibilities:
- I create a link to [[D]] => it becomes a link to [[A.B.C.D]] (new
terminal document)
Almost. I’ll create a page [[D]] in the current space.
- I create a link to [[A.B.C.D]] (new terminal
document)
correct
- I create a link to [[A.B.C.D.WebHome]] (new nested
space)
correct
Is my understanding correct?
yes. Please take into account the fact that there are plenty of macros that accept a
reference as input (include macro, display macro, context macro, etc). When used in
WYSIWYG we would use some special displayer to let the user user a tree to select the
document but in wiki mode, the idea of the proposal is to let the user fill the exact
reference (including WebHome).
Thanks
-Vincent
Thanks,
Guillaume
> The rationale for this is that a lot of macros accept a reference
> parameter and I don’t think we should change them to support hiding
> “WebHome” and do an automatic redirect. That would be too complex. In
> addition, if you use a script macro, then you’ll also see WebHome mentions.
>
> Note that when editing a macro in WYSIWYG editor we’ll need to have a
> macro parameter displayer for Reference-type parameters to display a tree,
> so that the non-technical doesn’t have to enter “WebHome”.
>
> WDYT?
>
> Thanks
> -Vincent