Modifiche per il documento OrderTemplate
Ultima modifica di Manoeuvring with Difficulty il 2024/01/25 10:18
Dalla versione 3.1
modificato da Manoeuvring with Difficulty
il 2023/12/03 06:38
il 2023/12/03 06:38
Cambia il commento:
Nessun commento per questa versione
Alla versione 7.2
modificato da Manoeuvring with Difficulty
il 2024/01/25 10:18
il 2024/01/25 10:18
Cambia il commento:
Removed tag [order]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Tags
-
... ... @@ -1,0 +1,1 @@ 1 +ordertemplate|test - Content
-
... ... @@ -33,4 +33,24 @@ 33 33 34 34 = Caveats = 35 35 36 - 36 + 37 += Related = 38 + 39 +{{velocity}} 40 +## Related pages display by Manoeuvring with Difficulty, displays a horizontal list of related pages based upon the tags given to the page 41 +## Get all tags assigned to this page 42 +#set ($tags = $doc.getTagList()) 43 +#foreach($tag in $tags) 44 + ---- 45 + (% style="text-align:center" %) 46 + **$tag.substring(0,1).toUpperCase()$tag.substring(1,$tag.length())** 47 + ~| ## Display the tags with the 1st letter being uppercase 48 + #set ($references = $services.query.xwql("from doc.object(XWiki.TagClass) as tag where '$tag' member of tag.tags").execute()) 49 + #foreach($reference in $references) 50 + #set ($document = $xwiki.getDocument($reference)) 51 + #set ($label = $document.getTitle()) 52 + [[$label>>$reference]] | ## link to every page with the same tag 53 + #end 54 + 55 +#end 56 +{{/velocity}}