Toggle the parent tree of EnablePanelsConfiguration Class. Wiki blog Toggle the hierarchy tree under Wiki blog. EnablePanelsConfiguration Class Toggle the hierarchy tree under EnablePanelsConfiguration Class.
Show last authors
author
version
line-number
content
1
{{velocity}}
2
## Replace the default space with the space where you want your documents to be created.
3
## Replace the default parent with the one of your choice and save the document.
4
##
5
#set ($defaultSpace = $doc.space)
6
#set ($defaultParent = $doc.fullName)
7
{{/velocity}}
Toggle the right panel column.
#includeMacros("Blog.BlogCode") #getBlogEntriesBaseQuery($query) #set($query = "$!{query} and isPublished.value = 1") #set($recentEntries = $xwiki.searchDocuments("${query} order by publishDate.value desc", 10, 0)) #if($recentEntries.size() > 0 || $showEmptyPanels) #panelheader('Recent Blog Posts') #foreach($entryDoc in $xwiki.wrapDocs($recentEntries)) #getEntryObject($entryDoc $entryObj)
[$!{entryDoc.display('title', 'view', $entryObj)}>$!{entryDoc.fullName}] #end #panelfooter() #end
#includeMacros("Blog.BlogCode") #getBlogEntriesBaseQuery($query) #set($query = "$!{query} and isPublished.value = 0") #set($unpublishedEntries = $xwiki.searchDocuments("${query} order by publishDate.value desc", 5, 0)) #if($unpublishedEntries.size() > 0 || $showEmptyPanels) #panelheader("Unpublished Posts") #foreach($entryDoc in $xwiki.wrapDocs($unpublishedEntries)) #getEntryObject($entryDoc $entryObj)
[$!{entryDoc.display('title', 'view', $entryObj)}>$!{entryDoc.fullName}] #end [View all ($xwiki.countDocuments($query))>Blog.Unpublished] #panelfooter() #end
#includeMacros("Blog.CategoriesCode") #panelheader('Blog Categories') #getCategoriesHierarchy('Blog' $tree) #displayCategoriesHierarchy($tree 'simple') #if($xwiki.hasAdminRights()) <div style="font-size:75%;">(<a href="$xwiki.getURL('Blog.ManageCategories')">Edit Categories</a>)</div> #end #panelfooter()
{{include reference="Blog.BlogCode"/}}
{{velocity}}
#getAllBlogPostsQueryBasedOnDisplayContext($doc $query $queryParams)
#bindQueryParameters($queryObj $queryParams)
{{/velocity}}