General Actions:
Log-in
Register
Wiki:
xwiki
▼
:
Document Index
»
Space:
Blog
▼
:
Document Index
»
Page:
BlogPostSheet
Search
default
Page Actions:
Export
▼
:
Export as PDF
Export as HTML
More actions
▼
:
Print preview
View Source
Main.WebHome
»
The Wiki Blog
»
XClass representing a blog entry
»
Wiki source code of
Show line numbers
{{include document="Blog.BlogCode"/}} {{include document="Blog.CategoriesCode"/}} {{velocity}} {{html clean="false" wiki="true"}} $xwiki.jsx.use('Blog.ManageCategories', {'mode' : 'select'})## $xwiki.ssx.use('Blog.ManageCategories')## #getEntryObject($doc $entryObj) #if("$!entryObj" == '') {{warning}}{{translation key='xe.blog.sheet.notpost'/}}{{/warning}} ## Keep testing the inline action for backward compatibility with older blog posts. #elseif($xcontext.action != 'edit' && $xcontext.action != 'inline') ## View mode #isPublished($entryObj $isPublished) #isHidden($entryObj $isHidden) ## displayBlog requires a list of documents, and whether to display only an extract or the full entry. #displayBlog([$tdoc] 'single' false false) #else ; {{translation key='xe.blog.sheet.title'/}} : $doc.display('title', 'edit', $entryObj) ; {{translation key='xe.blog.sheet.content'/}} : $doc.display('content', 'edit', $entryObj) ; {{translation key='xe.blog.sheet.summary'/}} : $doc.display('extract', 'edit', $entryObj) ; {{translation key='xe.blog.sheet.category'/}} : (((#displayCategoryManagementTree('' 'selectable') (% class="clearfloats" %)((()))))) #isPublished($entryObj $isPublished) #if($isPublished) #if($doc.creator == $xcontext.user) #publishMessageBox($services.localization.render('xe.blog.sheet.publicationdate', [${doc.display('publishDate', 'view', $entryObj)}])) #set($hideArticle = ${doc.display('hidden', 'edit', $entryObj)}) #hideMessageBox($services.localization.render('xe.blog.sheet.hidearticle', [${hideArticle}])) #end #else #set($defaultDate = $xwiki.getDocument($blogPostTemplate).getObject($blogPostClassname).getProperty('publishDate').value.time) #if($entryObj.getProperty('publishDate').value.time == $defaultDate) ## The publish date was not set, force it to be the creation date $entryObj.set('publishDate', $doc.creationDate) #end #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>") #end #end {{/html}} {{/velocity}}
Recent Blog Posts
First blog post
Blog Categories
News
(1)
Other
(0)
Personal
(0)
Blog Archive
2009
(1)
Klasyfikacja