Changes for page Featured

Last modified by Tobias Wintrich on 2025/06/04 09:20

From version 15.1
edited by Tobias Wintrich
on 2022/09/15 15:18
Change comment: Migrated property [defaultCategories] from class [XWiki.WikiMacroClass]
To version 4.1
edited by Tobias Wintrich
on 2021/10/05 08:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Hidden
... ... @@ -1,1 +1,1 @@
1 -true
1 +false
Content
... ... @@ -1,9 +1,1 @@
1 -Dieses Makro zeigt alle Artikel mit dem Tag "Featured" an.
2 -
3 -= Standard =
4 -
5 -{{Feratured/}}
6 -
7 -= Mit Option "Bold/ Fett gedruckt" =
8 -
9 -{{Feratured bold="true"/}}
1 +{{Feratured}}{{/Feratured}}
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -3,16 +3,8 @@
3 3  obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags' and 'Featured' in
4 4  elements(prop.list) order by doc.name asc")
5 5  #set ($results= $xwiki.searchDocuments($sql))
6 -{{html}}
7 -#if($wikimacro.parameters.bold == 'true')
8 -<div style='font-weight: bold;'>
9 -#end
10 10  #foreach ($result in $results)
11 11  #set($doc= $xwiki.getDocument($result))
12 -<a href="$doc.getURL()">$escapetool.xml($doc.plainTitle)</a><br/>
8 +{{html}}<a href="$doc.getURL()">$escapetool.xml($doc.plainTitle)</a>{{/html}}
13 13  #end
14 -#if($wikimacro.parameters.bold == 'true')
15 -</div>
16 -#end
17 -{{/html}}
18 18  {{/velocity}}
Macro content availability
... ... @@ -1,1 +1,0 @@
1 -No content