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)
- 
          Attachments (0 změněno, 0 přidáno, 3 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"/}} 
 
- brevnov_int_podkroví_smer_bok.jpg
-   - Author
-   ... ... @@ -1,1 +1,0 @@ 1 -XWiki.DavidBrazda 
- Size
-   ... ... @@ -1,1 +1,0 @@ 1 -3.8 MB 
- Content
 
- ctvrecec v2_2 pgdenik.jpg
-   - Author
-   ... ... @@ -1,1 +1,0 @@ 1 -XWiki.DavidBrazda 
- Size
-   ... ... @@ -1,1 +1,0 @@ 1 -22.3 KB 
- Content
 
- logoPgWiki.jpg
-   - Author
-   ... ... @@ -1,1 +1,0 @@ 1 -XWiki.DavidBrazda 
- Size
-   ... ... @@ -1,1 +1,0 @@ 1 -15.8 KB 
- Content
 
- 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,31 +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 - #set ($xdom = $doc.getXDOM()); 20 - ##find first paragraph 21 - #set ($block = $xdom.getFirstBlock('class:ParagraphBlock','DESCENDANT')) 22 - ##render it 23 - #set ($firstParagraph = $services.rendering.render($block, "xwiki/2.1")) 24 - #if (!$document.isHidden() && ($document.getTitle())) 25 - #set ($label = $document.getTitle()) 26 - * [[$label>>$document]] 27 - $firstParagraph 28 - #end 29 -#end 30 -#end 31 -{{/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