一般动作
登录
Wiki:
BROPEN
▼
:
Document Index
»
Space:
AppWithinMinutes
▼
:
Document Index
»
Page:
Title
搜索
default
页面动作
导出
▼
:
以PDF格式导出
以RTF格式导出
以HTML格式导出
更多动作
▼
:
打印预览
察看源码
欢迎进入Wiki
»
App Within Minutes
»
FormField Class
»
Title
Wiki源代码
Title
在2013-10-01 11:53上被
Administrator
修改
内容
·
评论
(0)
·
附件
(0)
·
记录
·
信息
隐藏行号
1: {{velocity}} 2: #if ($type == 'edit') 3: #set ($className = $object.getxWikiClass().name) 4: #if ($doc.fullName == $className) 5: ## We are editing the class so the title must be read from / written to the template document. 6: #set ($name = 'templateTitle') 7: #set ($value = $xwiki.getDocument("$stringtool.removeEnd($className, 'Class')Template").title) 8: #else 9: ## We are editing an application entry so the title must be read from / written to the current document. 10: #set ($name = 'title') 11: #set ($value = $tdoc.title) 12: #end 13: {{html clean="false"}} 14: <input type="text" name="$name" value="$!escapetool.xml($value)" 15: #if ($xwiki.getXWikiPreference('xwiki.title.mandatory') == 1)class="required"#end/> 16: {{/html}} 17: #elseif ("$!type" != '') 18: ## Render the title of the current document. 19: {{html}}$tdoc.getRenderedTitle('xhtml/1.0'){{/html}} 20: #else 21: The display mode is not specified! 22: #end 23: {{/velocity}}
快速链接
首页
新闻动态
FAQ