Změny dokumentu Macro - changedpages1 - forTest
Naposledy upravil David Brazda 28.04.2021 07:58
Popis verze:
Při změně verze nebyl zadán žádný kometář.
Přehled
-
Na stránce změněno: (2 změněno, 0 přidáno, 0 odstraněno)
-
Objects (0 změněno, 0 přidáno, 3 odstraněno)
Rozpis
- Na stránce změněno:
-
- Nadpis
-
... ... @@ -1,1 +1,1 @@ 1 -Macro - changedpages 1 - forTest1 +Macro - changedpages - Obsah
-
... ... @@ -1,5 +1,0 @@ 1 -**~{~{changedpages1/}}** 2 - 3 -**for test just on this wiki** 4 - 5 -{{changedpages1 limit="10"/}}
- XWiki.AverageRatingsClass[0]
-
- Average Vote
-
... ... @@ -1,1 +1,0 @@ 1 -2.0 - Manager Identifier
-
... ... @@ -1,1 +1,0 @@ 1 -ratings - Number of Votes
-
... ... @@ -1,1 +1,0 @@ 1 -1 - Voted Entity Reference
-
... ... @@ -1,1 +1,0 @@ 1 -document:xwiki:BackEnd.Macro - changedpages - forTest.WebHome - Scale of votes
-
... ... @@ -1,1 +1,0 @@ 1 -5 - Date of last update
-
... ... @@ -1,1 +1,0 @@ 1 -2021-02-28 13:21:00.33
- XWiki.WikiMacroClass[0]
-
- Cached
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Context elements
-
... ... @@ -1,1 +1,0 @@ 1 -wiki - Asynchronous rendering
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Macro code
-
... ... @@ -1,25 +1,0 @@ 1 -{{velocity}} 2 -##fetches last 6 created pages in 30days 3 -#set($howManyDays = 30) 4 -#set($limit = $xcontext.macro.params.get('limit')) 5 -#if (!$limit) 6 - #set($limit = 5) 7 -#end 8 -#set($fromDate = $datetool.systemCalendar) 9 -#set($discard = $fromDate.add(7,-$howManyDays)) 10 -#set ($list = $services.query.xwql('where doc.creationDate > :date and doc.hidden = 0 order by doc.creationDate desc').bindValue('date', $datetool.toDate($fromDate)).setLimit($limit).execute()) 11 -##if there are less than $limit pages created in 30 days, then repeat the query without 30days limitation 12 -#if ($list.size() < $limit) 13 -#set ($list = $services.query.xwql('where doc.hidden = 0 order by doc.creationDate desc').setLimit($limit).execute()) 14 -#end 15 -#if ($list.size() != 0) 16 -Nově vytvořené stránky 17 -#foreach($reference in $list) 18 - #set ($document = $xwiki.getDocument($reference)) 19 - #if (!$document.isHidden() && ($document.getTitle())) 20 - #set ($label = $document.getTitle()) 21 - * [[$label>>$document]] 22 - #end 23 -#end 24 -#end 25 -{{/velocity}} - Macro content availability
-
... ... @@ -1,1 +1,0 @@ 1 -No content - Macro description
-
... ... @@ -1,1 +1,0 @@ 1 -Seznam nedávno změněné stránek - Macro id
-
... ... @@ -1,1 +1,0 @@ 1 -changedpages1 - Macro name
-
... ... @@ -1,1 +1,0 @@ 1 -Nedávno upravené stránky - Supports inline mode
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Macro visibility
-
... ... @@ -1,1 +1,0 @@ 1 -Current Wiki
- XWiki.WikiMacroParameterClass[0]
-
- Parameter default value
-
... ... @@ -1,1 +1,0 @@ 1 -5 - Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Počet uvedených stránek (default 5) - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -0 - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -limit