Last modified by Thomas Mortagne on 2023/10/13

<
From version < 15.9 >
edited by Vincent Massol
on 2016/02/22
To version < 16.1 >
edited by Vincent Massol
on 2016/02/22
>
Change comment: Give an example

Summary

Details

Page properties
Content
... ... @@ -14,6 +14,7 @@
14 14  
15 15  * For performances reasons, we have set a limit for the number of LESS CSS compilations that can be done simultaneously.
16 16  * For the same reason, the LESS cache is not cleared anymore at XWiki launch.
17 +
17 17  For more informations about this, please see [[extensions:Extension.LESS Module||anchor="Cache"]].
18 18  
19 19  == Miscellaneous ==
... ... @@ -48,8 +48,18 @@
48 48  $xwiki.getURL($subscriberReference, 'view', 'category=notification')
49 49  {{/code}}
50 50  )))
51 -* It's now possible to directly compare a ##org.xwiki.extension.version.Version## (at least its default implementation) to a String. Makes a lot easier to manipulate versions in Velocity for example.
52 +* It's now possible to directly compare a ##org.xwiki.extension.version.Version## (at least its default implementation) to a String. Makes a lot easier to manipulate versions in Velocity for example. For example, before 8.0M2 you had to write:(((
53 +{{code}}
54 +#set ($supportsNS = $services.extension.core.getCoreExtension('org.xwiki.platform:xwiki-platform-model').id.version.compareTo($services.extension.parseVersion('7.2')) >= 0)
55 +{{/code}}
52 52  
57 +You can now write:
58 +
59 +{{code}}
60 +#set ($supportsNS = $services.extension.core.getCoreExtension('org.xwiki.platform:xwiki-platform-model').id.version.compareTo('7.2') >= 0)
61 +{{/code}}
62 +)))
63 +
53 53  = Translations =
54 54  
55 55  The following translations have been updated:

Get Connected