Changes for page XWiki Syntax Guide

Last modified by Ludovic Dubost on 2020/07/30 11:21

From version 9.1
edited by Ludovic Dubost
on 2018/12/09 12:28
Change comment: Install extension [org.xwiki.platform:xwiki-platform-help-ui/10.10]
To version 7.1
edited by Ludovic Dubost
on 2016/10/24 00:53
Change comment: Install extension [org.xwiki.platform:xwiki-platform-help-ui-8.2.1]

Summary

Details

Page properties
Content
... ... @@ -112,7 +112,7 @@
112 112   #end
113 113  
114 114   ## Add new sections to category children map
115 - #set($child = {'id' : $sectionDoc.documentReference.name.substring(11), 'minSyntax' : $obj.getProperty("minSyntaxId").value, 'maxSyntax' : $obj.getProperty("maxSyntaxId").value, 'name' : $sectionTitle})
115 + #set($child = {'id' : $sectionDoc.getName().substring(11), 'minSyntax' : $obj.getProperty("minSyntaxId").value, 'maxSyntax' : $obj.getProperty("maxSyntaxId").value, 'name' : $sectionTitle})
116 116   $catChildren.add($child)
117 117   #end
118 118  #end
... ... @@ -308,11 +308,11 @@
308 308  ##-----------------------------------------
309 309  ## syntax-page display
310 310  ##-----------------------------------------
311 - #set ($subHeading = '===')
312 312   (% id="syntax-page-content" %)(((
313 313   #if(!$crtSection && !$crtCategory)
314 314   #syntax_displayCategories($syntaxMenu 'syntax.')
315 315   #elseif (!$crtSection)
315 + #set ($subHeading = '===')
316 316   #syntax_displayCategory($crtCategory.children 'syntax.' '==')
317 317   #else
318 318   #syntax_displaySection($crtSection 'syntax.' false)