一般动作
登录
Wiki:
BROPEN
▼
:
Document Index
»
Space:
Blog
▼
:
Document Index
»
Page:
BlogPostSheet
搜索
default
页面动作
导出
▼
:
以PDF格式导出
以RTF格式导出
以HTML格式导出
更多动作
▼
:
打印预览
察看源码
欢迎进入Wiki
»
The Wiki Blog
»
XClass representing a blog entry
»
Wiki源代码
在2013-10-01 11:53上被
Administrator
修改
内容
·
评论
(0)
·
附件
(0)
·
记录
·
信息
隐藏行号
1: {{include document="Blog.BlogCode"/}} 2: 3: {{include document="Blog.CategoriesCode"/}} 4: 5: {{velocity}} 6: {{html clean="false" wiki="true"}} 7: $xwiki.jsx.use('Blog.ManageCategories', {'mode' : 'select'})## 8: $xwiki.ssx.use('Blog.ManageCategories')## 9: #getEntryObject($doc $entryObj) 10: #if("$!entryObj" == '') 11: {{warning}}{{translation key='xe.blog.sheet.notpost'/}}{{/warning}} 12: ## Keep testing the inline action for backward compatibility with older blog posts. 13: #elseif($xcontext.action != 'edit' && $xcontext.action != 'inline') 14: ## View mode 15: #isPublished($entryObj $isPublished) 16: #isHidden($entryObj $isHidden) 17: ## displayBlog requires a list of documents, and whether to display only an extract or the full entry. 18: #displayBlog([$tdoc] 'single' false false) 19: #else 20: ; {{translation key='xe.blog.sheet.title'/}} 21: : $doc.display('title', 'edit', $entryObj) 22: ; {{translation key='xe.blog.sheet.content'/}} 23: : $doc.display('content', 'edit', $entryObj) 24: ; {{translation key='xe.blog.sheet.summary'/}} 25: : $doc.display('extract', 'edit', $entryObj) 26: ; {{translation key='xe.blog.sheet.category'/}} 27: : (((#displayCategoryManagementTree('' 'selectable') (% class="clearfloats" %)((()))))) 28: #isPublished($entryObj $isPublished) 29: #if($isPublished) 30: #if($doc.creator == $xcontext.user) 31: #publishMessageBox($services.localization.render('xe.blog.sheet.publicationdate', [${doc.display('publishDate', 'view', $entryObj)}])) 32: #set($hideArticle = ${doc.display('hidden', 'edit', $entryObj)}) 33: #hideMessageBox($services.localization.render('xe.blog.sheet.hidearticle', [${hideArticle}])) 34: #end 35: #else 36: #set($defaultDate = $xwiki.getDocument($blogPostTemplate).getObject($blogPostClassname).getProperty('publishDate').value.time) 37: #if($entryObj.getProperty('publishDate').value.time == $defaultDate) 38: ## The publish date was not set, force it to be the creation date 39: $entryObj.set('publishDate', $doc.creationDate) 40: #end 41: #publishMessageBox("$services.localization.render('xe.blog.sheet.notpublished') <label>**$services.localization.render('xe.blog.sheet.publish') ${doc.display('published', 'edit', $entryObj)}**</label>\\<label>$services.localization.render('xe.blog.sheet.setdate') ${doc.display('publishDate', 'edit', $entryObj)}</label>") 42: #end 43: #end 44: {{/html}} 45: {{/velocity}}
Recent Blog Posts
Blog Categories
News
(16)
Other
(0)
Personal
(0)
Blog Archive
当前没有文章......
快速链接
首页
新闻动态
FAQ