Toggle navigation
Log-in
Wiki Index
Page Index
User Index
Application Index
Blog
Wiki source code of
Last modified by superadmin on 2016/07/29 17:18
Export
Print preview
View Source
Siblings
Content
Comments
Attachments
History
Information
×
Export
Export as PDF
Export as HTML
Cancel
Show line numbers
{{include reference="Blog.BlogCode"/}} {{include reference="Blog.CategoriesCode"/}} {{velocity}} $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 #if ("$!request.title" != '') ## Use the page title specified on the request, if available, as blog post title. This is needed for instance when ## we create the blog post using the Create Page wizard with the blog post template provider (the user is specifying ## the page title). #set ($discard = $entryObj.set('title', $request.title)) #end ; {{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'/}} : ((({{html clean="false" wiki="true"}}#displayCategoryManagementTree('' 'selectable'){{/html}} (% class="clearfloats" %)((()))))) #if ($doc.isNew()) ## We're creating a new blog post. We handle this case differently because #isPublished returns true when the ## property is not set (object missing) and thus the new blog post will appear as published. See also the comment ## from the else branch below. #set ($isPublished = false) #else ## We're editing an existing blog post. We need to check the original document because the current one can have ## unsaved changes, which happens for instance after returning from preview. #set ($originalDocument = $xwiki.getDocument($doc.documentReference)) #getEntryObject($originalDocument $originalEntryObj) #isPublished($originalEntryObj $isPublished) #end #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 {{html clean="false" wiki="true"}} #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>") {{/html}} #end #end {{/velocity}}
Applications
Blog
Dashboard
Sandbox
More applications
Navigation
Recent Blog Posts
WajunPCの評価記事、NECの再生PC
ジーンディコードのぺーじ
ストレスに強い人の特徴
国立感染症研究所
CDC発表
研究所流出説
茶番かも!?
コロナまとめ 2021-0523sun
病床数と5類についての意見メモ
本日のリアル管理栄養士のお言葉
Blog Categories
KVM
(1)
News
(4)
Other
(0)
Personal
(15)
Serverなど
(0)
Windows
(0)
firewall
(1)
routing
(1)
中学、高校の数学・物理の復習
(4)
中学、高校、大学の数学・物理・化学の復習
(3)
Blog Archive
2009
(1)
2016
(4)
2017
(1)
2021
(23)
2022
(2)