Changes for page Featured

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

From version 14.1
edited by Tobias Wintrich
on 2021/10/05 09:03
Change comment: There is no comment for this version
To version 1.1
edited by Tobias Wintrich
on 2021/10/05 08:43
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,9 +1,0 @@
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"/}}
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,18 +1,0 @@
1 -{{velocity}}
2 -#set($sql = ", BaseObject as obj, DBStringListProperty as prop where obj.name=doc.fullName and
3 -obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags' and 'Featured' in
4 -elements(prop.list) order by doc.name asc")
5 -#set ($results= $xwiki.searchDocuments($sql))
6 -{{html}}
7 -#if($wikimacro.parameters.bold == 'true')
8 -<div style='font-weight: bold;'>
9 -#end
10 -#foreach ($result in $results)
11 -#set($doc= $xwiki.getDocument($result))
12 -<a href="$doc.getURL()">$escapetool.xml($doc.plainTitle)</a><br/>
13 -#end
14 -#if($wikimacro.parameters.bold == 'true')
15 -</div>
16 -#end
17 -{{/html}}
18 -{{/velocity}}
Content description (Not applicable for "No content" type)
... ... @@ -1,0 +1,12 @@
1 +{{velocity}}
2 +#panelheader("Featured")
3 +#set($sql = ", BaseObject as obj, DBStringListProperty as prop where obj.name=doc.fullName and
4 +obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags' and 'Featured' in
5 +elements(prop.list) order by doc.name asc")
6 +#set ($results= $xwiki.searchDocuments($sql))
7 +#foreach ($result in $results)
8 +#set($doc= $xwiki.getDocument($result))
9 +{{html}}<a href="$doc.getURL()">$escapetool.xml($doc.plainTitle)</a>{{/html}}
10 +#end
11 +#panelfooter()
12 +{{/velocity}}
Macro content availability
... ... @@ -1,1 +1,0 @@
1 -No content
XWiki.WikiMacroParameterClass[0]
Parameter default value
... ... @@ -1,1 +1,0 @@
1 -false
Parameter description
... ... @@ -1,1 +1,0 @@
1 -Fett gedruck
Parameter mandatory
... ... @@ -1,1 +1,0 @@
1 -No
Parameter name
... ... @@ -1,1 +1,0 @@
1 -bold