Changes for page User Directory
Last modified by Ludovic Dubost on 2019/11/21 10:10
From version 6.1
edited by Ludovic Dubost
on 2019/11/21 10:10
on 2019/11/21 10:10
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-user-directory-ui/11.9]
To version 4.1
edited by Ludovic Dubost
on 2014/11/18 12:31
on 2014/11/18 12:31
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-user-directory-ui-6.3]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,5 @@ 1 1 {{include reference='XWiki.UserDirectoryMacros'/}} 2 2 3 3 {{velocity}} 4 -#set ($customize = $request.customize == 'true') 5 -#displayUserDirectory($customize) 6 -#set ($docextras = []) 4 +#displayUserDirectory(true) 7 7 {{/velocity}}
- XWiki.JavaScriptExtension[0]
-
- Caching policy
-
... ... @@ -1,0 +1,1 @@ 1 +long - Code
-
... ... @@ -1,0 +1,41 @@ 1 +(function(){ 2 + 3 + /** 4 + * Init 5 + */ 6 + function init() { 7 + var userScope = $('userScopeFilter'); 8 + if (userScope === null) { 9 + // Nothing to do 10 + return; 11 + } 12 + userScope.observe('change', onUserScopeChange); 13 + } 14 + 15 + function onUserScopeChange(event) { 16 + var value = $('userScopeFilter').value; 17 + var livetable = window["livetable_userdirectory"]; 18 + var url = livetable.getUrl; 19 + if (url.search("userScope=") >= 0) { 20 + // Replace the old value 21 + if (value == 'local') { 22 + url = url.replace("userScope=global", "userScope=local"); 23 + } else { 24 + url = url.replace("userScope=local", "userScope=global"); 25 + } 26 + } else { 27 + url = url + "&userScope=" + value; 28 + } 29 + livetable.getUrl = url; 30 + // Reload the livetable 31 + livetable.clearCache(); 32 + livetable.showRows(1, livetable.limit); 33 + } 34 + 35 + /** 36 + * Call Init 37 + */ 38 + (XWiki && XWiki.domIsLoaded && init()) || document.observe("xwiki:dom:loaded", init); 39 + 40 +})(); 41 + - Name
-
... ... @@ -1,0 +1,1 @@ 1 +Dynamic filter for user scope - Parse content
-
... ... @@ -1,0 +1,1 @@ 1 +No - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +onDemand
- XWiki.UIExtensionClass[0]
-
- Extension Point ID
-
... ... @@ -1,0 +1,1 @@ 1 +org.xwiki.platform.panels.Applications - Extension ID
-
... ... @@ -1,0 +1,1 @@ 1 +platform.panels.userDirectoryApplication - Extension Parameters
-
... ... @@ -1,0 +1,3 @@ 1 +label=$services.localization.render('xe.panels.quicklinks.userdirectory') 2 +target=Main.UserDirectory 3 +icon=icon:group - Extension Scope
-
... ... @@ -1,0 +1,1 @@ 1 +wiki