Configuration
Configuration of Generic properties is done in the writer client configuration file
This section assumes the reader is familiar with the writer client configuration file, Article's NewsML format, and JSON in general.
Generic Properties configuration is part of the writer client configuration file, it is not accessible from the Configuration Test Tool in the Writer.

Basic Configuration Example

Below is an example which adds two Generic Properties, "position", and "fullwidth". Two plugins use the position-property, image gallery and image, while only image uses the fullwidth-property.
Example of generic properties configuration in Writer client config file:
1
{
2
"propertiesConfig": {
3
"showByDefault": [
4
"im-ximimage"
5
],
6
"properties": [
7
{
8
"name": "position",
9
"title": "Position",
10
"plugins": [
11
"im-imagegallery",
12
"im-ximimage"
13
],
14
"values": [
15
{
16
"title": "Left",
17
"value": "left"
18
},
19
{
20
"title": "Right",
21
"value": "right"
22
},
23
{
24
"title": "Center",
25
"value": "center"
26
}
27
]
28
},
29
{
30
"name": "fullwidth",
31
"title": "Full Width",
32
"plugins": [
33
"im-ximimage"
34
],
35
"values": [
36
{
37
"title": "Yes",
38
"value": "1"
39
}
40
]
41
}
42
]
43
},
44
"plugins": ...
45
}
Copied!
The output in the article's XML will look similar to this for an Image using generic properties:
1
<object id="MTI1LDIyNiw3OSw5OQ" type="x-im/image" uuid="5f720706-0f79-531c-be69-55dcb574a90b">
2
<links>
3
<link rel="self" type="x-im/image" uri="im://image/XabjbUPYd8tv-myp4VW4STU--XM.jpg" uuid="5f720706-0f79-531c-be69-55dcb574a90b">
4
<data>
5
<width>2048</width>
6
<height>1360</height>
7
<imageInstructions/>
8
<text/>
9
<credit/>
10
</data>
11
</link>
12
</links>
13
<properties>
14
<property name="position" value="left"/>
15
<property name="fullwidth" value="1"/>
16
</properties>
17
</object>
Copied!
As stated earlier, each plugin can have one unique setup for generic properties, or you can share the same configuration between different plugins (image/image gallery for example).
For example content-part, our fact box plugin, have one general configuration for the entire plugin.