Changes for page BlogPostLayoutIDoc

Last modified by Administrator on 03.08.2023 14:17

From version 9.1
edited by Administrator
on 18.09.2017 07:21
Change comment: There is no comment for this version
To version 10.3
edited by Administrator
on 18.09.2017 07:39
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -51,8 +51,33 @@
51 51   #end
52 52  #end
53 53  #if ($displayCalendar)(% class="blogDay" %)(((#end
54 -#if ($displayCalendar && $displayCalendarImage)#displayBlogDate($postDate)#end
55 -#displayEntry($postDoc $postObj $useSummary $displayTitle $displayActions)
54 +#if ($displayCalendar && $displayCalendarImage)#displayBlogDate($postDate)#end
55 +## #displayEntry($postDoc $postObj $useSummary $displayTitle $displayActions)
56 +## #macro(displayEntry $entryDoc $entryObj $onlyExtract $shouldDisplayTitle $shouldDisplayActions)
57 + #isPublished($postObj $isPublished)
58 + #isHidden($postObj $isHidden)
59 + #if($doc.fullName == $postDoc.fullName)
60 + (% class="hentry single-article" %)(((
61 + #else
62 + (% class="hentry#if(!$isPublished) unpublished-article#elseif($isHidden) hidden-article#end" %)(((
63 + #end
64 + #if ($displayActions)
65 + #displayEntryTools($postDoc $postObj)
66 + #end
67 + #if($displayTitle)
68 + #displayEntryTitle($postDoc $postObj)
69 + #end
70 + #if($doc.fullName == $postDoc.fullName)
71 + #if(!$isPublished)
72 + {{warning}}{{translation key='blog.code.published'/}}{{/warning}}
73 + #elseif($isHidden)
74 + {{warning}}{{translation key='blog.code.hidden'/}}{{/warning}}
75 + #end
76 + #end
77 + #displayEntryContent($postDoc $postObj $useSummary)
78 + #displayEntryFooter($postDoc $postObj)
79 + )))## hentry
80 +## #end
56 56  #if ($displayCalendar))))#end
57 57  #else
58 58  {{error}}$services.localization.render('blog.blogpostlayout.notpost', [$xcontext.macro.params.reference]){{/error}}
Macro description
... ... @@ -1,0 +1,1 @@
1 +Makro pro zobrazení příspěvku iDoc
Macro name
... ... @@ -1,1 +1,1 @@
1 -BlogPostLayoutMyLayout
1 +Blog Post Layout My Layout
Supports inline mode
... ... @@ -1,1 +1,0 @@
1 -Yes
Macro visibility
... ... @@ -1,1 +1,1 @@
1 -Current Wiki
1 +Global
XWiki.WikiMacroParameterClass[0]
Parameter description
... ... @@ -1,0 +1,1 @@
1 +The document reference of the blog post
Parameter mandatory
... ... @@ -1,0 +1,1 @@
1 +Yes
Parameter name
... ... @@ -1,0 +1,1 @@
1 +reference
XWiki.WikiMacroParameterClass[1]
Parameter description
... ... @@ -1,0 +1,1 @@
1 +Additional parameters of the blog post layout
Parameter name
... ... @@ -1,0 +1,1 @@
1 +params