On Thu, Sep 6, 2018 at 3:57 PM, Adel Atallah <adel.atallah(a)xwiki.com> wrote:
Hi devs,
Working on the auto-suggestion feature [1], I've been integrating it
in xproperties holding a reference to a page. Those xproperties are of
type String and have been changed to the Page type so that the page
displayer is used and shows the auto-suggestion when needed.
I now need to implement an auto-suggestion on xproperties holding a
reference to a space (e.g [2]), a wiki (e.g [2]) and an attachment
(e.g. [3]).
I think the best would be to create an Attachment and
Wiki xproperty
type and create new displayers exactly like the Page type.
+1
I don't think we can create a Space xproperty because it's not meant
to be visible by the end user.
Maybe we could use the Page xproperty type and have a
parameter inside
to select only spaces.
+1, that's actually useful for enforcing the selection of non-terminal
pages. That's useful for instance when you want to select the location
where to create some pages: the selected page should not be terminal.
Thanks,
Marius
WDYT?
Thanks,
Adel
--------
[1]
https://design.xwiki.org/xwiki/bin/view/Proposal/
AutocompleteOnReference
[2]
https://design.xwiki.org/xwiki/bin/view/Proposal/
AutocompleteOnReference#HClass:XWiki.WatchListClass
[3]
https://design.xwiki.org/xwiki/bin/view/Proposal/
AutocompleteOnReference#HClass:XWiki.XWikiUsers