Changes for page Create Application

Last modified by Ludovic Dubost on 2024/07/22 15:51

From version 6.1
edited by Ludovic Dubost
on 2017/01/07 20:21
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-8.4.3]
To version 5.1
edited by Ludovic Dubost
on 2015/11/28 14:58
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-7.3]

Summary

Details

Page properties
Content
... ... @@ -5,14 +5,14 @@
5 5  {{velocity output="false"}}
6 6  #macro(showStep)
7 7   {{html wiki="true"}}
8 - #appWizardHeader('name')
8 + #appWizardHeader(1)
9 9   (% class="wizard-help" %)
10 10   (((
11 11   **$services.localization.render('platform.appwithinminutes.wizardStepHelpTitle')** $services.localization.render('platform.appwithinminutes.wizardStepHelpDescription')
12 12   (% class="steps vertical" %)
13 - #foreach($step in $awmSteps)
14 - * (% class="number" %)$mathtool.add($foreach.index, 1)(%%) (% class="name" %)$services.localization.render("appWithinMinutes.wizardStep.${step}.name")(%%)
15 - (% class="description" %)$services.localization.render("appWithinMinutes.wizardStep.${step}.description")
13 + #foreach($index in [1, 2, 3])
14 + * (% class="number" %)$index(%%) (% class="name" %)$services.localization.render("platform.appwithinminutes.wizardStep${index}Name")(%%)
15 + (% class="description" %)$services.localization.render("platform.appwithinminutes.wizardStep${index}Description")
16 16   #end
17 17   )))
18 18   <form action="$doc.getURL()" method="post" class="xform wizard-body">
... ... @@ -59,6 +59,7 @@
59 59   #if (!$xwiki.exists($appClassRef))
60 60   #set ($appHomeRef = $services.model.resolveDocument('', 'default', $appReference))
61 61   #set ($discard = $queryString.putAll({
62 + 'editor': 'inline',
62 62   'template': 'AppWithinMinutes.ClassTemplate',
63 63   'parent': $services.model.serialize($appHomeRef),
64 64   'title': "$appReference.name Class"
... ... @@ -79,15 +79,23 @@
79 79   #set ($appClassRef = $appDescriptorObj.getValue('class'))
80 80   ## The class reference is relative to the document holding the application descriptor.
81 81   #set ($appClassRef = $services.model.resolveDocument($appClassRef, 'explicit', $appDescriptor.documentReference))
83 + #set ($appDataRef = $appDescriptorObj.getValue('dataSpace'))
84 + ## The data space reference is relative to the document holding the application descriptor.
85 + #set ($appDataRef = $services.model.resolveSpace($appDataRef, 'explicit', $appDescriptor.documentReference))
82 82   #else
83 83   ## Create a new application.
88 + #set ($appDataRef = $services.model.createSpaceReference('Data', $appReference))
84 84   #set ($appCodeRef = $services.model.createSpaceReference('Code', $appReference))
85 85   #set ($appClassRef = $services.model.createDocumentReference("$!{appReference.name}Class", $appCodeRef))
86 86   #end
87 87   ; $services.localization.render('platform.appwithinminutes.appNamePreviewHomePageUrlLabel')
88 88   : {{{$!xwiki.getDocument($appReference).externalURL}}}
94 + ; $services.localization.render('platform.appwithinminutes.appNamePreviewDataSpaceLabel')
95 + : {{html clean="false"}}#hierarchy($appDataRef){{/html}}
89 89   ; $services.localization.render('platform.appwithinminutes.appNamePreviewCodeSpaceLabel')
90 90   : {{html clean="false"}}#hierarchy($appClassRef.parent){{/html}}
98 + ; $services.localization.render('platform.appwithinminutes.appNamePreviewClassReferenceLabel')
99 + : {{html clean="false"}}#hierarchy($appClassRef){{/html}}
91 91   #set ($appHomeRef = $services.model.resolveDocument('', 'default', $appReference))
92 92   #if ($appDescriptor || $xwiki.exists($appHomeRef) || $xwiki.exists($appClassRef))
93 93  
... ... @@ -132,5 +132,5 @@
132 132  #else
133 133   #showStep
134 134  #end
135 -#set ($displayDocExtra = false)
144 +#set ($docextras = [])
136 136  {{/velocity}}