一般动作
登录
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) · 记录 · 信息
显示行号 {{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}}

# 快速链接

- 首页
- 新闻动态
- FAQ

Copyright © 2013 北京博瑞开源软件有限公司
京ICP备12048974号