General Actions:
Log-in
Register
Home
▼
:
Wiki Index
»
Space:
XWiki
»
Page:
SearchSuggestSourceSheet
default
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to bytebang
»
SearchCode
»
Search Suggest Configuration
»
SearchSuggestSourceClass
»
SearchSuggestSourceSheet
Wiki source code of
SearchSuggestSourceSheet
Last modified by
Administrator
on 2014/06/29 19:29
Content
·
Attachments
(0)
·
Information
Show line numbers
{{velocity}} #set ($className = 'XWiki.SearchSuggestSourceClass') #set ($class = $xwiki.getDocument($className).xWikiClass) #if (!$object && "$!request.xobjectNumber" != '') #set ($object = $doc.getObject($className, $mathtool.toInteger($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}}