Search Editorial OC backend for concepts of type x-im/channel
. ConceptService
configuration needed in writer-config.json
{
"id": "io.infomaker.conceptpublicationchannel",
"name": "im-conceptpublicationchannel",
"url": "https://plugins.writer.infomaker.io/v1/infomaker/im-conceptpublicationchannel/{PLUGIN_VERSION}/index.js",
"style": "https://plugins.writer.infomaker.io/v1/infomaker/im-conceptpublicationchannel/{PLUGIN_VERSION}/style.css",
"enabled": true,
"mandatory": false,
"data": {
"disableMainChannel": true
}
}
}
Property | Type | Required | Description |
---|---|---|---|
disableMainChannel |
boolean | false |
An optional property to disable usage of "mainchannel" and only render normal channel pills |
Configuration for the writer config file. This plugin uses the same ConceptService-class and config as the ximconcepts-plugin, therefor this configuration only needs to be entered once.
See readme in Concept plugin for more information.
The property map is used to translate different kind of OC configurations into prop-names ConceptService can use. ConceptPublicationChannelPlugin requires some additional properties. See full list below.
The left hand side will be used by ConceptService, fill in the property-names from OC on the right hand side.
"propertyMap": {
"uuid": "uuid",
"ConceptName": "ConceptName",
"ConceptNameString": "ConceptNameString",
"ConceptStatus": "ConceptStatus",
"ConceptDefinitionShort": "ConceptDefinitionShort",
"ConceptDefinitionLong": "ConceptDefinitionLong",
"ConceptImTypeFull": "ConceptImTypeFull",
"ConceptImSubTypeFull": "ConceptImSubTypeFull",
"ConceptGeometry": "ConceptGeometry",
"ConceptAvatarUuid": "ConceptAvatarUuid",
"ConceptAssociatedWith": "ConceptAssociatedWith",
"ConceptBroaderRelation": "ConceptBroaderRelation",
"ConceptAssociatedWithRelations": "ConceptAssociatedWithRelations",
"ConceptAssociatedWithMeRelations": "ConceptAssociatedWithMeRelations",
"ConceptReplacedByRelation": "ConceptReplacedByRelation"
}
Each selected channel will generate a link inside the article's newsitem > itemMeta > links
element.
<link rel="channel" title="Channel im" type="x-im/channel" uuid="90a0891b-2804-4c89-9515-d042c2f23e18"/>
If disableMainChannel
is set to false
and a Mainchannel is selected, the link will look a little different
<link rel="mainchannel" title="Channel nav" type="x-im/channel" uuid="c0cabd37-c2c1-4792-85f0-75492bea587b"/>
Multiple channels can be selected at once
<link rel="channel" title="Lavendel News" type="x-im/channel" uuid="a5e45638-e34f-4bd3-b7f5-491c0029c184"/>
<link rel="channel" title="Channel im" type="x-im/channel" uuid="90a0891b-2804-4c89-9515-d042c2f23e18"/>
<link rel="mainchannel" title="Channel nav" type="x-im/channel" uuid="c0cabd37-c2c1-4792-85f0-75492bea587b"/>