Wiki source code of AdminPageAndChildrenRightsSheet
Last modified by Julien Fleury on 2020/12/12 16:55
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | {{info}} | ||
3 | #set($webHomeRef = $services.model.resolveDocument('WebHome')) | ||
4 | ## For the children link, we do not use 'viewer=children' because the WebHome might not exist and the viewer shows a | ||
5 | ## 404 error in that case. Instead, we use 'xpage=children' because it always works, and because children document | ||
6 | ## could exist even if the parent document does not. | ||
7 | $services.localization.render('admin.pageandchildrenrights.info', ['**', '[[', ">>path:$xwiki.getURL($webHomeRef, 'view', 'xpage=children')]]", '**']) | ||
8 | {{/info}} | ||
9 | |||
10 | ### Administrate the rights in a space (page + children = space). | ||
11 | {{html}} | ||
12 | #template('rightsUI.vm') | ||
13 | {{/html}} | ||
14 | {{/velocity}} |