Changes for page Title
Last modified by SuperNico Laub on 2025/09/18 17:54
From version 1.1
edited by superadmin
on 2025/05/22 17:44
on 2025/05/22 17:44
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/16.10.8]
To version 2.1
edited by SuperNico Laub
on 2025/09/18 17:54
on 2025/09/18 17:54
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/17.7.0]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.super admin1 +xwiki:XWiki.supernico - Content
-
... ... @@ -1,6 +1,7 @@ 1 1 {{velocity}} 2 2 #if ($type == 'edit') 3 3 #set ($className = $object.getxWikiClass().name) 4 + #set ($id = $escapetool.xml("${prefix}${name}")) 4 4 #if ($doc.fullName == $className) 5 5 ## We are editing the class so the title must be read from / written to the template document. 6 6 #set ($name = 'templateTitle') ... ... @@ -14,7 +14,7 @@ 14 14 #end 15 15 #end 16 16 {{html clean="false"}} 17 - <input type="text" name="$name" value="$!escapetool.xml($value)" 18 + <input id="$id" type="text" name="$name" value="$!escapetool.xml($value)" 18 18 ## The default value for an AppWithinMinutes field should be optional so we make only the actual page title 19 19 ## mandatory and not the template title, which holds the default title value. 20 20 #if ($name == 'title' && $xwiki.getSpacePreference('xwiki.title.mandatory') == 1)required #end