DisplayWidget
From OpenCms Wiki
(Difference between revisions)
(Added some doc for this widget after reading the source code) |
m (Format) |
||
Line 9: | Line 9: | ||
Example: | Example: | ||
− | + | <code lang="ini"> | |
− | + | # Element label | |
+ | label.MyType.MyElement = My very important element | ||
− | + | # Help text that could be used by other widgets | |
− | + | label.MyType.MyElement.help = This element is very important and should be filled-in with special care | |
− | + | # Help text shown by this widget | |
− | + | label.MyType.MyElement.help.disabled = This element is very important and cannot yet be edited | |
+ | </code> | ||
==See also== | ==See also== | ||
*[[XMLContent]] | *[[XMLContent]] |
Latest revision as of 15:36, 23 August 2012
Description
Provides a display only widget, for use on a widget dialog.
The widget is implemented by org.opencms.widgets.CmsDisplayWidget (since 6.0.0).
Configuration
You can configure the help text shown by appending the postfix ".disabled" to the key entry in the bundle properties file.
Example:
# Element label label.MyType.MyElement = My very important element # Help text that could be used by other widgets label.MyType.MyElement.help = This element is very important and should be filled-in with special care # Help text shown by this widget label.MyType.MyElement.help.disabled = This element is very important and cannot yet be edited