<
From version < 10.1 >
edited by Thomas Mortagne
on 2013/06/10
To version < 11.1 >
edited by Thomas Mortagne
on 2013/06/10
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -35,14 +35,14 @@
35 35  == Miscellaneous ==
36 36  
37 37  * A new Velocity macro is available to display the title of a [[sheet>>doc:extensions:Extension.Sheet Module]]. Most of the times when you have a sheet you want to display some text when the user visits the sheet page and something different when the user visits a page where the sheet is applied. Up until now the solution was to write an if in the sheet title to check if the current document is the sheet. E.g.:(((
38 -{{code language="none"}}#if ($doc.fullName == 'AppWithinMinutes.LiveTableViewSheet')LiveTable View Sheet#{else}#evaluate($doc.title)#end{{/code}}
38 +{{code language="velocity"}}#if ($doc.fullName == 'AppWithinMinutes.LiveTableViewSheet')LiveTable View Sheet#{else}#evaluate($doc.title)#end{{/code}}
39 39  This can now be written as:
40 -{{code language="none"}}#sheetTitle('LiveTable View Sheet' $doc.fullName.equals('AppWithinMinutes.LiveTableViewSheet')){{/code}}
40 +{{code language="velocity"}}#sheetTitle('LiveTable View Sheet' $doc.fullName.equals('AppWithinMinutes.LiveTableViewSheet')){{/code}}
41 41  or, if the sheet has an object of type ##XWiki.SheetDescriptorClass##:
42 -{{code language="none"}}#sheetTitle('LiveTable View Sheet'){{/code}}
42 +{{code language="velocity"}}#sheetTitle('LiveTable View Sheet'){{/code}}
43 43  )))
44 44  * A new 'jQueryNoConflict' module is available. All it does is calling ##jQuery.noConflict(false)## to prevent conflicts with Prototype.js (with respect to ##$## global variable):(((
45 -{{code language="none"}}
45 +{{code language="javascript"}}
46 46  require(['jQueryNoConflict'], function($) {
47 47   // Your code here.
48 48  })

Get Connected