General Actions:
Log-in
Register
Home
▼
:
Wiki Index
»
Space:
AppWithinMinutes
»
Page:
Title
default
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to bytebang
»
App Within Minutes
»
FormField Class
»
Title
Wiki source code of
Title
Last modified by
Administrator
on 2014/06/29 19:29
Content
Show line numbers
{{velocity}} #if ($type == 'edit') #set ($className = $object.getxWikiClass().name) #if ($doc.fullName == $className) ## We are editing the class so the title must be read from / written to the template document. #set ($name = 'templateTitle') #set ($value = $xwiki.getDocument("$stringtool.removeEnd($className, 'Class')Template").title) #else ## We are editing an application entry so the title must be read from / written to the current document. #set ($name = 'title') #set ($value = $tdoc.title) #end {{html clean="false"}} <input type="text" name="$name" value="$!escapetool.xml($value)" #if ($xwiki.getXWikiPreference('xwiki.title.mandatory') == 1)class="required"#end/> {{/html}} #elseif ("$!type" != '') ## Render the title of the current document. {{html}}$tdoc.getRenderedTitle('xhtml/1.0'){{/html}} #else The display mode is not specified! #end {{/velocity}}