DisplayWidget

From OpenCms Wiki
(Difference between revisions)
Jump to: navigation, search
(Added some doc for this widget after reading the source code)
 
m (Format)
 
Line 9: Line 9:
 
Example:
 
Example:
  
  # Element label
+
<code lang="ini">
  label.MyType.MyElement = My very important element
+
# Element label
 +
label.MyType.MyElement = My very important element
  
  # Help text that could be used by other widgets
+
# 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
+
label.MyType.MyElement.help = This element is very important and should be filled-in with special care
  
  # Help text shown by this widget
+
# Help text shown by this widget
  label.MyType.MyElement.help.disabled = This element is very important and cannot yet be edited
+
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 16: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

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox