Changes for page Content

Last modified by Martin Výlet on 19.03.2025 21:26

From version 1.1
edited by XWiki Admin
on 26.05.2017 08:18
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-9.3.1]
To version 3.1
edited by Administrator
on 21.07.2023 12:41
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/15.5]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Admin
1 +XWiki.xwikiadm
Content
... ... @@ -31,7 +31,8 @@
31 31   'name': "$name",
32 32   'rows': 25,
33 33   'cols': 80,
34 - 'full': true
34 + 'full': true,
35 + 'restricted': $editedDocument.isRestricted()
35 35   })
36 36   #else
37 37   </div>
... ... @@ -38,8 +38,12 @@
38 38   #end
39 39   {{/html}}
40 40  #elseif ("$!type" != '')
41 - ## Include the content of the current document.
42 - {{include reference=""/}}
42 + ## Display the content of the current document without using any sheet. We can't use the include macro here (with the
43 + ## author parameter) because the content may have unsaved changes (e.g. on preview action). We make sure that the HTML
44 + ## macro is not closed unintentionally, even though the XHTML printer protects us against this, just to be extra safe.
45 + {{html}}$services.display.content($tdoc, {
46 + 'displayerHint': 'default'
47 + }).replace('{{/html}}', '&amp;#123;&amp;#123;/html&amp;#125;&amp;#125;'){{/html}}
43 43  #else
44 44   The display mode is not specified!
45 45  #end
AppWithinMinutes.FormFieldClass[0]
Icon
... ... @@ -1,1 +1,1 @@
1 -icons/silk/page_white_edit.png
1 +edit