一般动作
登录
Wiki:
BROPEN
▼
:
Document Index
»
Space:
Main
▼
:
Document Index
»
Page:
AllDocs
搜索
default
页面动作
导出
▼
:
以PDF格式导出
以RTF格式导出
以HTML格式导出
更多动作
▼
:
打印预览
察看源码
欢迎进入Wiki
»
该Wiki中的文档
Wiki源代码
该Wiki中的文档
在2013-10-09 15:02上被
Administrator
修改
内容
显示行号
{{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}}
快速链接
首页
新闻动态
FAQ