Changes for page ClassTranslationsGenerator
Last modified by Richard Johnson on 2020/08/21 14:41
edited by Richard Johnson
on 2019/03/30 13:46
on 2019/03/30 13:46
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/11.2]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. superadmin1 +xwiki:XWiki.raj - Content
-
... ... @@ -1,3 +1,5 @@ 1 +{{include reference="AppWithinMinutes.VelocityMacros" /}} 2 + 1 1 {{velocity output="false"}} 2 2 ## Special characters that need to be escaped in the key. 3 3 #set ($keySpecialCharsPattern = $regextool.compile('([=: \\])')) ... ... @@ -5,6 +5,8 @@ 5 5 #macro (map $key $value) 6 6 $keySpecialCharsPattern.matcher($key).replaceAll('\\$1')=$value 7 7 #end 10 + 11 +#getAppTitle 8 8 {{/velocity}} 9 9 10 10 {{velocity wiki="false"}} ... ... @@ -21,7 +21,7 @@ 21 21 #end 22 22 23 23 $escapetool.h Live table generic keys 24 -#set ($appName = $doc.name.replaceAll('Class', '').toLowerCase()) 28 +#set ($appName = $doc.documentReference.name.replaceAll('Class', '').toLowerCase()) 25 25 #set ($prefix = "${appName}.livetable.") 26 26 #set ($liveTableGenericKeys = { 27 27 'doc.title': 'liveTableEditorDocTitleColumnName', ... ... @@ -51,7 +51,7 @@ 51 51 #end 52 52 53 53 $escapetool.h Other keys 54 -#map("${appName}.entry.name" $ stringtool.removeEnd($doc.name, 'Class'))58 +#map("${appName}.entry.name" $appTitle) 55 55 56 56 $escapetool.h Deprecated keys 57 57 #map("${appName}.dataSpace.title" 'Data')