Changes for page BlogPostLayoutFull

Last modified by Administrator on 03.08.2023 14:17

From version 1.1
edited by Administrator
on 03.07.2017 07:57
Change comment: Install extension [org.xwiki.contrib.blog:application-blog-ui-9.4]
To version 2.1
edited by superadmin
on 06.01.2023 13:31
Change comment: Install extension [org.xwiki.contrib.blog:application-blog-ui/9.12]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.xwikiadm
1 +XWiki.superadmin
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -5,9 +5,12 @@
5 5  {{velocity}}
6 6  #if ($services.security.authorization.hasAccess('view', $xcontext.macro.params.reference))
7 7  #set ($postDoc = $xwiki.getDocument($xcontext.macro.params.reference))
8 +#if ($doc.fullName == $postDoc.fullName)
9 + #set ($postDoc = $doc)
10 +#end
8 8  #getEntryObject($postDoc $postObj)
9 9  #if ("$!postObj" != '')
10 -#set ($useSummary = false)
13 +#set ($useSummary = true)
11 11  #set ($displayTitle = true)
12 12  #set ($displayCalendar = true)
13 13  #set ($displayCalendarImage = true)
... ... @@ -15,8 +15,8 @@
15 15  #set ($previousPostReference = '')
16 16  #extractLayoutParametersFromString($xcontext.macro.params.params $macroAdditionalParams)
17 17  ##
18 -#if ("$!macroAdditionalParams.get('useSummary')" == 'true')
19 - #set ($useSummary = true)
21 +#if ("$!macroAdditionalParams.get('useSummary')" == 'false')
22 + #set ($useSummary = false)
20 20  #end
21 21  ##
22 22  #if ("$!macroAdditionalParams.get('displayTitle')" == 'false')
... ... @@ -23,13 +23,8 @@
23 23   #set ($displayTitle = false)
24 24  #end
25 25  ##
26 -#if ("$!macroAdditionalParams.get('displayImage')" == 'true')
27 - #set ($displayImage = true)
28 -#end
29 -##
30 30  #if ("$!macroAdditionalParams.get('displayCalendar')" == 'false')
31 31   #set ($displayCalendar = false)
32 - #set ($displayImage = false)## DisplayCalendar has the priority
33 33  #end
34 34  ##
35 35  #if ("$!macroAdditionalParams.get('previousPostReference')" != '')
Macro visibility
... ... @@ -1,1 +1,1 @@
1 -Global
1 +Current Wiki