Wiki source code of Tour

Last modified by superadmin on 2026/11/28 07:59

Show last authors
1 {{velocity}}
2 #set ($columnsProperties = {
3 'doc.title': {"type": "text", "size":10,"link":"view"},
4 'isActive': {"type": "text", "size":10, "sortable":true, "filterable": false},
5 'targetPage': {"type":"text","size":10},
6 'targetClass': {"type":"text","size":10},
7 '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]}
8 })
9 #set ($options = {
10 'className': 'TourCode.TourClass',
11 'resultPage': 'TourCode.TourLiveTableResults',
12 'translationPrefix': 'tour.livetable.',
13 'tagCloud': true,
14 'rowCount': 15,
15 'maxPages': 10,
16 'selectedColumn': 'doc.title',
17 'defaultOrder': 'asc',
18 'queryFilters': 'currentlanguage'
19 })
20 #set ($columns = ['doc.title', 'isActive', 'targetPage'])
21 #if ($isAdvancedUser)
22 #set ($discard = $columns.add('targetClass'))
23 #end
24 #set ($discard = $columns.add('_actions'))
25 #livetable('tour' $columns $columnsProperties $options)
26 {{/velocity}}

#panelheader($msg.get("xe.panels.quicklinks"))

  • [L3D Calendar>L3D Calendar.WebHome]
  • [$msg.get("xe.panels.quicklinks.dashboard")>Main.WebHome]
  • [$msg.get("xe.panels.quicklinks.index")>Main.AllDocs]
  • [$msg.get("xe.panels.quicklinks.blog")>Blog.WebHome]
  • [$msg.get("xe.panels.quicklinks.sandbox")>Sandbox.WebHome]
    #if ($xwiki.hasAdminRights())
    <p style="font-size:0.75em;padding-left:8px;"><a href="$xwiki.getDocument("Panels.QuickLinks").getURL("inline")">$msg.get("xe.panels.edit")</a></p>
    #end
    #panelfooter()

#set($recentDocs = $xwiki.searchDocuments("where 1=1 and doc.author='$context.user' order by doc.date desc", 5, 0))
#if($recentDocs.size() > 0 || $showEmptyPanels)
#panelheader($msg.get("xe.panels.modifications.my"))
#set($first = true)
#foreach($docname in $recentDocs)
#set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
#if($first == true)
#set($first = false)
#else
<span class="pitemseparator"> | </span>
#end
<span class="panelitem"><a href="$rdoc.getURL("view")">$rdoc.displayTitle</a></span>
#end
#panelfooter()
#end