General Actions:
Log-in
Register
Home
▼
:
Wiki Index
Document Index
User Index
»
Space:
Main
▼
:
Document Index
»
Page:
AllDocs
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to the CB-NL Wiki
»
Documents on this Wiki
Wiki source code of
Documents on this Wiki
Last modified by
Administrator
on 2013/11/20 19:56
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
{{velocity}} ##================ ## Find which tab to display ##================ #if("$!{view}" == '') #set($view = $request.getParameter('view')) #if("$!{view}" == '') #set ($view = 'index') #end #end ##======== ## Set Tab Data ##======== #set($tabs = []) #macro(addAllDocsTab $tab) #if($xwiki.hasAccessLevel('view', "$!xcontext.user", $tab.get('document'))) #set($discard = $tabs.add($tab)) #end #end #addAllDocsTab({'tabName' : 'index', 'idSuffix' : 'index', 'translationKey' : 'platform.index', 'document' : 'XWiki.Tableview'}) #addAllDocsTab({'tabName' : 'tree', 'idSuffix' : 'treeview', 'translationKey' : 'platform.index.tree', 'document' : 'XWiki.Treeview'}) #addAllDocsTab({'tabName' : 'orphans', 'idSuffix' : 'orphansview', 'translationKey' : 'platform.index.orphaned', 'document' : 'XWiki.OrphanedPages'}) #addAllDocsTab({'tabName' : 'attachments', 'idSuffix' : 'attachments', 'translationKey' : 'platform.index.attachments', 'document' : 'XWiki.AllAttachments'}) #addAllDocsTab({'tabName' : 'deletedDocs', 'idSuffix' : 'deletedDocs', 'translationKey' : 'platform.index.documentsTrash', 'document' : 'XWiki.DeletedDocuments'}) #addAllDocsTab({'tabName' : 'deletedAttachments', 'idSuffix' : 'deletedAttachments', 'translationKey' : 'platform.index.attachmentsTrash', 'document' : 'XWiki.DeletedAttachments'}) ##============================================= ## Add External Links tab if the LinkChecker module is present. ## TODO: In the future replace this hardcoded link with Interface Extensions ##============================================= #if($services.rendering.defaultTransformationNames.contains('linkchecker') && $services.linkchecker) #set ($dummy = $tabs.add({'tabName' : 'externalLinks', 'idSuffix' : 'externalLinks', 'translationKey' : 'platform.linkchecker.indexTab', 'document' : 'XWiki.ExternalLinks'})) #end ##=========== ## Display the Tabs ##=========== {{html}} <div class="floatcontainer"> <ul class="xwikitabbar"> #foreach ($tab in $tabs) <li id="xwiki$tab['idSuffix']"#if($view == $tab['tabName']) class="active"#end><a href="$doc.getURL('view', "view=$tab['tabName']&$!param")">$services.localization.render($tab['translationKey'])</a></li> #end </ul> </div> {{/html}} ##========================== ## Include the Tab data for the selected Tab ##========================== {{html wiki="true"}} <div class='xwikitabpanescontainer'> #foreach ($tab in $tabs) #if ($tab['tabName'] == $view) {{include document="$tab['document']"/}} #break #end #end </div> {{/html}} {{/velocity}}