Toggle navigation
Log-in
myITGuide
Page Index
User Index
Application Index
Global
Wiki Index
Home
Blog
Links
Database
SQL Server
Cassandra
BigData
PostgreSQL
Redis
MariaDB
MongoDB
Tools
T-SQL
Powershell
Python
Scala
R
Jupyter
Java
Solution
Streaming
Spark
Storm
Search
Solr
ElasticSearch
Kafka
Puppet
Kibana
Docker
Kubernetes
OS
Windows
Linux
About
About Us
Email Us
myITGuide.com
Pages on this Wiki
Wiki source code of
Pages on this Wiki
Last modified by superadmin on 2016/12/20 10:06
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'}) #if ($services.parentchild.isParentChildMechanismEnabled()) #addAllDocsTab({'tabName' : 'orphans', 'idSuffix' : 'orphansview', 'translationKey' : 'platform.index.orphaned', 'document' : 'XWiki.OrphanedPages'}) #end #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 reference="$tab['document']"/}} #break #end #end </div> {{/html}} #set($docextras=[]) {{/velocity}}