Změny dokumentu Macro - changedpages1 - forTest
Naposledy upravil David Brazda 28.04.2021 07:58
Popis verze:
Update average rating
Přehled
-
Na stránce změněno: (1 změněno, 0 přidáno, 0 odstraněno)
-
Objects (1 změněno, 1 přidáno, 0 odstraněno)
Rozpis
- Na stránce změněno:
-
- Obsah
-
... ... @@ -3,3 +3,4 @@ 3 3 **for test just on this wiki** 4 4 5 5 {{changedpages1/}} 6 +
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -9,12 +9,11 @@ 9 9 Naposledy upravené 10 10 #foreach($reference in $list) 11 11 #set ($document = $xwiki.getDocument($reference)) 12 - #set ($parent = $document.parent) 12 + #set ($parentDoc = $xwiki.getDocument($document.parent)) 13 13 ## nezobrazujeme skryte stranky a stranky na ktere zrovna jsme 14 14 #if ((!$document.isHidden()) && ($document != $doc)) 15 - #set ($label = $document.getTitle()) 16 - * #if ($parent) [[$parent.getTitle()>>$parent]] -> #end [[$label>>$document]] 17 - $document.parent 15 + * [[$document.getTitle()>>$document]] v sekci #if ($document.parent) [[$parentDoc.getTitle()>>$parentDoc]] #end 16 + 18 18 #end 19 19 #end 20 20 #end
- XWiki.AverageRatingsClass[0]
-
- Average Vote
-
... ... @@ -1,0 +1,1 @@ 1 +5.0 - Manager Identifier
-
... ... @@ -1,0 +1,1 @@ 1 +ratings - Number of Votes
-
... ... @@ -1,0 +1,1 @@ 1 +1 - Voted Entity Reference
-
... ... @@ -1,0 +1,1 @@ 1 +document:xwiki:BackEnd.Macro - changedpages - forTest.WebHome - Scale of votes
-
... ... @@ -1,0 +1,1 @@ 1 +5 - Date of last update
-
... ... @@ -1,0 +1,1 @@ 1 +2021-02-28 13:20:56.603