OrderTemplate 페이지의 변경 사항
2024/01/25 10:18에서 Manoeuvring with Difficulty이(가) 마지막으로 수정했습니다
version 7.1 까지
Manoeuvring with Difficulty 에 의해 편집됨
on 2024/01/25 10:17
on 2024/01/25 10:17
댓글 변경:
made script for displaying similarly tagged pages work
요약
-
페이지 속성 (2 수정, 0 추가, 0 제거)
세부 사항
- 페이지 속성
-
- 태그
-
... ... @@ -1,0 +1,1 @@ 1 +ordertemplate|test|order - 내용
-
... ... @@ -36,4 +36,21 @@ 36 36 37 37 = Related = 38 38 39 - 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}}