General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
Document Index
»
Space:
Main
▼
:
Document Index
»
Page:
AllDocs
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Main wiki
»
Documents on this Wiki
Wiki source code of
Documents on this Wiki
Last modified by
Administrator
on 2012/03/21 17:40
Content
·
Comments
(0)
·
Annotations
(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 = [ {'tabName' : 'index', 'idSuffix' : 'index', 'translationKey' : 'platform.index', 'document' : 'XWiki.Tableview'}, {'tabName' : 'tree', 'idSuffix' : 'treeview', 'translationKey' : 'platform.index.tree', 'document' : 'XWiki.Treeview'}, {'tabName' : 'orphans', 'idSuffix' : 'orphansview', 'translationKey' : 'platform.index.orphaned', 'document' : 'XWiki.OrphanedPages'}, {'tabName' : 'attachments', 'idSuffix' : 'attachments', 'translationKey' : 'platform.index.attachments', 'document' : 'XWiki.AllAttachments'}, {'tabName' : 'deletedDocs', 'idSuffix' : 'deletedDocs', 'translationKey' : 'platform.index.documentsTrash', 'document' : 'XWiki.DeletedDocuments'}, {'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")">$msg.get($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}}