Defining Custom Property Editor Mark-up
You indicate that a custom editor is required for a field by
adding special elements and attributes you have defined yourself to the
field definition in the content-type
resource. You
need to determine the following values:
- Namespace URI
-
Define a URI that you will use to identify the special elements you add to the
content-type
resource. For example"http://my-company.com/2008/studio-plugin"
. - Property editor name
-
Define a name for your property editor. This name will also be the name of the element you add to the
content-type
resource, so it must not contain any spaces or special characters other than '-' and '_'. For example"my-custom-property-editor"
. - Enabled attribute name
-
The name of the attribute that is to be used to determine whether or not the editor is enabled. This will usually be
"enabled"
. - Enabled attribute value
-
The value that is to indicate that the editor is enabled. This will usually be
"true"
. - Parameter names
-
If you want to allow parameters to be set in the
content-type
resource, then you should decide on the names of the parameters. These will be XML element names so they must not contain any spaces or special characters other than '-' and '_'. You might, for example, decide that you need a"min"
and a"max"
parameter.