Object Type Class
Class dsobjtype-<type> allows you to pass object type information to the converter. For example, to indicate that an object is user details you can add HTML class dsobjtype-user-details to your markup as in the following example:
<
tr
class
=
"dsobject dsobjtype-user-details"
>
...
<
td
class
=
"dsattr-lastname"
>
Doe
</
td
>
<
td
class
=
"dsattr-firstname"
>
John
</
td
>
...
</
tr
>
As a result, the JSON object in the output will have a special attribute "_type":
{
"_type"
:
"user-details"
,
...
"lastname"
:
"Doe"
,
"firstname"
:
"John"
,
...
}
Type information can be used by applications that read data from Confluence pages. It is also used during conversion to filter out irrelevant text from attribute values.