Changes for page Main

Last modified by Administrator on 2023/03/27 10:53

From version 3.1
edited by Administrator
on 2020/01/07 18:45
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/11.10.2]
To version 5.1
edited by Administrator
on 2020/12/29 00:17
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/12.10.2]

Summary

Details

Page properties
Content
... ... @@ -97,6 +97,7 @@
97 97   #set ($fieldURL = $doc.getURL('edit', $escapetool.url({
98 98   'xpage': 'plain',
99 99   'sheet': 'AppWithinMinutes.ClassEditSheet',
100 + 'template': 'AppWithinMinutes.ClassTemplate',
100 100   'field': $formFieldDoc.fullName,
101 101   'xeditmode': 'text'
102 102   })))
... ... @@ -387,6 +387,7 @@
387 387   * Display the edit class form.
388 388   *#
389 389  #macro (displayEditForm)
391 + #set ($discard = $xwiki.jsfx.use('js/scriptaculous/effects.js'))
390 390   #set ($discard = $xwiki.jsfx.use('js/scriptaculous/dragdrop.js'))
391 391   #set ($discard = $xwiki.jsx.use('AppWithinMinutes.ClassEditSheet'))
392 392   #set ($discard = $xwiki.ssx.use('AppWithinMinutes.ClassEditSheet'))
... ... @@ -437,7 +437,7 @@
437 437   #try()
438 438   #set ($discard = $copyAsJob.join())
439 439   #set ($copyAsJobStatus = $services.job.getJobStatus($copyAsJob.request.id))
440 - #set ($errorMessage = $copyAsJobStatus.logTail.getFirstLogEvents('ERROR').toString())
442 + #set ($errorMessage = $copyAsJobStatus.logTail.getFirstLogEvent('ERROR').toString())
441 441   #end
442 442   #end
443 443  #end
... ... @@ -617,6 +617,10 @@
617 617   #set($discard = $sheetDoc.setParent($doc.documentReference.name))
618 618   #set($discard = $sheetDoc.setContent($doc.getRenderedContent($sheetGeneratorDoc.content,
619 619   $sheetGeneratorDoc.syntax.toIdString(), 'plain/1.0')))
622 + ## We assume for now that the output produced by the sheet generator uses the same syntax as the code of the sheet
623 + ## generator. We have to set the syntax because the default wiki syntax (used when creating new wiki pages) could
624 + ## be different than the one used by the sheet generator.
625 + #set($discard = $sheetDoc.setSyntax($sheetGeneratorDoc.syntax))
620 620   #set($discard = $sheetDoc.setHidden(true))
621 621   #set($discard = $sheetDoc.save($services.localization.render('platform.appwithinminutes.classEditorSheetSaveComment'),
622 622   $minorEdit))
... ... @@ -642,6 +642,7 @@
642 642   #set($translationsGeneratorDoc = $xwiki.getDocument('AppWithinMinutes.ClassTranslationsGenerator'))
643 643   #set($discard = $translationsDoc.setContent($doc.getRenderedContent($translationsGeneratorDoc.content,
644 644   $translationsGeneratorDoc.syntax.toIdString(), 'plain/1.0')))
651 + #set($discard = $translationsDoc.setSyntaxId('plain/1.0'))
645 645   #set($discard = $translationsDoc.setHidden(true))
646 646   #set($discard = $translationsDoc.save(
647 647   $services.localization.render('platform.appwithinminutes.classEditorTranslationsSaveComment'),