Changes for page Title

Last modified by SuperNico Laub on 2025/09/18 17:54

From version 2.1
edited by SuperNico Laub
on 2025/09/18 17:54
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/17.7.0]
To version 1.1
edited by superadmin
on 2025/05/22 17:44
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/16.10.8]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.supernico
1 +XWiki.superadmin
Content
... ... @@ -1,7 +1,6 @@
1 1  {{velocity}}
2 2  #if ($type == 'edit')
3 3   #set ($className = $object.getxWikiClass().name)
4 - #set ($id = $escapetool.xml("${prefix}${name}"))
5 5   #if ($doc.fullName == $className)
6 6   ## We are editing the class so the title must be read from / written to the template document.
7 7   #set ($name = 'templateTitle')
... ... @@ -15,7 +15,7 @@
15 15   #end
16 16   #end
17 17   {{html clean="false"}}
18 - <input id="$id" type="text" name="$name" value="$!escapetool.xml($value)"
17 + <input type="text" name="$name" value="$!escapetool.xml($value)"
19 19   ## The default value for an AppWithinMinutes field should be optional so we make only the actual page title
20 20   ## mandatory and not the template title, which holds the default title value.
21 21   #if ($name == 'title' && $xwiki.getSpacePreference('xwiki.title.mandatory') == 1)required #end