<
From version < 33.1 >
edited by Vincent Massol
on 2015/08/07
To version < 34.1 >
edited by Vincent Massol
on 2015/08/07
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -140,6 +140,18 @@
140 140  {{/code}}
141 141  )))
142 142  
143 +== Reference Scripting API for Nested Spaces ==
144 +
145 +The Script API for Entity References has been updated with new APIs to support creating Nested Spaces references. For example:
146 +
147 +{{code language="none"}}
148 +{{velocity}}
149 +$services.model.createDocumentReference("wiki", ["space1", "space2"], "page")
150 +$services.model.createDocumentReference("wiki", ["space1", "space2"], "page", "default")
151 +$services.model.createSpaceReference(["space1", "space2"], $services.model.createWikiReference("wiki"))
152 +{{/velocity}}
153 +{{/code}}
154 +
143 143  == Miscellaneous ==
144 144  
145 145  * Custom displayers are now executed with the Rights of the user who wrote them (i.e. author of the class document or content author of the displayer document), and not the Rights of the user who wrote the script that uses them (i.e. current context document's content author). See [[XWIKI-12306>>http://jira.xwiki.org/browse/XWIKI-12306]] for more details.

Get Connected