See http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Applicat... On Mon, Mar 17, 2014 at 4:40 PM, Jeremie BOUSQUET <[email protected]> wrote:
Hello,
In fact ConfigurableClass allows you to "plug" a specific Sheet (used to fill some properties from a class from an object from a specific page) in the admin UI of XWiki. So you can normally: - add some properties to the class XWiki.XWikiPreferences - create a page containing a Sheet to view/edit those new properties - (create a page holding an object for those properties) --> this is already the preferences pages - add a ConfigurableClass object to "plug" your sheet into the admin UI. As it should be added to the page that holds configuration, I think you have to add it to the XWiki.XWikiPreferences page.
The Sheet will show properties you want from XWiki.XWikiPreferences class, and so when you save it will update the preferences object of the page. For the configuration on Space per Space basis I suppose it's the purpose of the option "configureGlobally" - but I never tested that. I'm not sure I'm very clear ... :)
BR, Jeremie
2014-03-17 12:59 GMT+01:00 kalor <[email protected]>:
Thank you for your answer. If I understand it correctly this will work for some document I create adding ConfigurableClass and my custom class with configuration, and will be shown in configuration for space where my document is created.
But is there a way to use XWikiPreferences extended by some properties and edit those new properties in admin ui? Or is there a way to use custom class in the manner XWikiPreferences is used? Generaly I want to make some custom configurations per space, and I want to use getSpacePreference(...) method of XWiki api (using XWikiPreferences would be best for me)
Best regards Karol
-- View this message in context: http://xwiki.475771.n2.nabble.com/Extending-administrative-ui-tp7589610p7589... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne