Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 3.264
edited by Jip-jan Alunkel
on March 16, 01:58
on March 16, 01:58
Change comment:
Rollback to version 1.38
To version 3.265
edited by Jip-jan Alunkel
on March 16, 12:53
on March 16, 12:53
Change comment:
Rollback to version 1.38
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -5,13 +5,15 @@ 5 5 #set($discard = $services.localization.use('document', 'assets.pagemaker.translations')) 6 6 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false})) 7 7 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false, 'language': $context.language, 'myParameter': 'value'})) 8 -#set($subjectTitle = $doc.getFullName().split('\.')[0]) 9 -## Find the correct class name. This is if the class name starts with the name of the top parent space (referenced here by $subjectTitle). 8 +## Set the variable for the current subject which then can be used for translation keys, CSS classses and XClass determination. 9 +## The $subject is equal to the leading space of the current page that uses this sheet. 10 +#set($subject = $doc.getFullName().split('\.')[0]) 11 +## Find the correct class name. This is if the class name starts with the name of the top parent space (referenced here by $subject). 10 10 ## Specify a class name below to override this. 11 11 #set($theClass = "") 12 12 #set($docObjects = $doc.getxWikiObjects()) 13 13 #foreach($docObjectKey in $docObjects.keySet()) 14 - #if($docObjectKey.indexOf($subject Title) == 0)16 + #if($docObjectKey.indexOf($subject) == 0) 15 15 #if($theClass == "") 16 16 #set($theClass = $docObjectKey) 17 17 #end ... ... @@ -28,8 +28,8 @@ 28 28 #end 29 29 #end 30 30 ## The classProperties Map has to be in the order of how you want the form elements to appear in the form. 31 -## 'opener': 1 --> input functions as an interface control element, it 'opens' an additional block of form inputs. Only for select, input or radio inputs.32 -## 'classless': 1 --> input is not bound to any XClass or XClass property.33 +## 'opener': 1 --> Input functions as an interface control element, it 'opens' an additional block of form inputs. Only for select, input or radio inputs. 34 +## 'classless': 1 --> Input is not bound to any XClass or XClass property. 33 33 ## 'disabled': 1 --> Will not show up in the form at all. 34 34 ## 'extraAttributes': {"disabled": "disabled"} --> Will show up in the form as a disabled input. 35 35 #set($classProperties = { ... ... @@ -50,6 +50,8 @@ 50 50 $doc.getTranslatedDocument().getContent() 51 51 52 52 {{html wiki="true" clean="false"}} 55 +## Manual disabling of the create button in the 'Document actions' menu. 56 +#if(!$isGuest)<p><script>var pmMenuCreate = "disable";</script></p>#end 53 53 ## Show the content edit button 54 54 #if($hasRight) 55 55 <p class="buttons text-align-right"> ... ... @@ -58,13 +58,11 @@ 58 58 </a> 59 59 </p> 60 60 #end 61 -#if(!$isGuest)<p><script>var pmMenuCreate = "disable";</script></p>#end 62 62 <div class="clearfix"></div> 63 - 64 64 ## Show properties from the classProperties Map. 65 65 #if($xcontext.action == "view") 66 -<h2 class="inline-data-summary">$services.localization.render("${subject Title}.inlineDataSummary.sheet_properties")</h2>67 -<div id="${subject Title}" class="sheet_properties inline-data-summary">68 +<h2 class="inline-data-summary">$services.localization.render("${subject}.inlineDataSummary.sheet_properties")</h2> 69 +<div id="${subject}" class="sheet_properties inline-data-summary"> 68 68 ## Show the address 69 69 #createAddress($theClass 1) 70 70 ## Set the XClass properties which you would like to be displayed.