一般动作
登录
Wiki:
BROPEN
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
SearchSuggestSourceSheet
搜索
default
页面动作
导出
▼
:
以PDF格式导出
以RTF格式导出
以HTML格式导出
更多动作
▼
:
打印预览
察看源码
欢迎进入Wiki
»
SearchCode
»
Search Suggest Configuration
»
SearchSuggestSourceClass
»
SearchSuggestSourceSheet
Wiki源代码
SearchSuggestSourceSheet
在2013-10-09 15:02上被
Administrator
修改
内容
·
评论
(0)
·
附件
(0)
·
记录
·
信息
显示行号
{{velocity}} #set ($className = 'XWiki.SearchSuggestSourceClass') #set ($class = $xwiki.getDocument($className).xWikiClass) #if (!$object && "$!request.xobjectNumber" != '') #set ($object = $doc.getObject($className, $numbertool.integer($request.xobjectNumber))) #end #if (!$object) #set ($object = $doc.getObject($className, true)) #end #set ($discard = $doc.use($object)) #set ($prefix = "${className}_${object.number}_") ## We include the 'get' action because we use it when adding a new search suggest source through AJAX. #set ($editing = $xcontext.action == 'admin' || $xcontext.action == 'edit' || $xcontext.action == 'inline' || $xcontext.action == 'get') (% class="xform" %)((( #foreach ($property in $class.properties) #set ($displayFormType = $property.getProperty('displayFormType')) #set ($isCheckbox = $editing && $property.classType == 'Boolean' && (!$displayFormType || $displayFormType.value == 'checkbox')) ; {{html wiki="true"}} <label#if ($editing) for="${prefix}$property.name"#end> #if ($isCheckbox) $doc.display($property.name, 'edit') #end $property.translatedPrettyName </label> {{/html}}## #set ($hintKey = "${className}_${property.name}.hint") #if ($services.localization.get($hintKey)) (% class="xHint" %){{translation key="$hintKey"/}}## #end #if (!$isCheckbox) : #if ($editing) $doc.display($property.name, 'edit') #else {{{$!object.getProperty($property.name).value}}} #end #end #end ))) {{/velocity}}
快速链接
首页
新闻动态
FAQ