Details
-
Bug
-
Resolution: Fixed
-
Minor
-
6.1
-
None
-
Unknown
-
N/A
-
N/A
-
Description
Hello,
On flamingo I wanted this submenu of "More actions" if my document have 2 comments,
and this one if my document have any comment.
then i start to modify /skins/flamingo/shortcuts.vm with this little piece of code
#set ($CommentNumber = $doc.getObjects('XWiki.XWikiComments').size()) #if ($CommentNumber != '0') #set ($discard = $docextralinks.add(['comments', "$services.localization.render('docextra.comments') ($CommentNumber)", $CommentNumber, 'comment'])) #else #set ($discard = $docextralinks.add(['comments', $services.localization.render('docextra.comments'), $CommentNumber, 'comment'])) #end ##set ($discard = $docextralinks.add(['comments', "$services.localization.render('docextra.comments')$CommentNumberLabel", $doc.getObjects('XWiki.XWikiComments').size(), 'comment'])) #end
but after a little thinking :-/ I think that docextralinks function doesn't work correctly (on colibri there aren't problem)
what do you think?
Pascal