New SpaceReference displayer for wikimacro parameters

Hello all,

I’m working on implementing a new org.xwiki.model.reference.SpaceReference displayer for WikiMacro parameters.

The goal is to be able to easily set the value of wikimacro parameters expecting a space, using a dedicated picker.
Also, as there are no generic space picker, I’m also working on implementing one for this.

I created a jira ticket about it
I also started to create a design page for it.

If you have any feedback about it, I’d be glad to hear it :slight_smile:

Note that from a user perspective, I don’t think we should ask them to select a space since we only talk about pages and nested pages. At the level of APIs/java it’s fine though.

Maybe you could reuse (or extend) the document picker but add an option in it to only allowing selecting non-terminal pages (if that doesn’t exist already)?

Any progress? :slight_smile: Thanks!

Yes, I also think this is the right approach. The end user should select a nested page not a space (even if the underlying parameter has space in its name).