Allow the user to set an Article Name which is separate from the article headline.
Version 2.0.0
did not set name automatically when saving the article, the user would have to click on the article name input to
get a suggestion, then save the article.
Version 3.0.0
will set the name automatically on save by default. To keep the 2.0.0
-behavior, set the configuration option "disableSetTitleOnSave"
to true
.
Article name is editable and will suggest a name depending on the article's headline and paragraps. The article name will automatically
be set when a new article is saved with no name set.
Remember to remove the content from any existing newsItem > itemMeta > title
-element in the article used as a template. The title
-element should look like this <title/>
.
{
"id": "io.infomaker.articlename",
"name": "im-articlename",
"url": "https://plugins.writer.infomaker.io/v1/infomaker/im-articlename/{PLUGIN_VERSION}/index.js",
"style": "https://plugins.writer.infomaker.io/v1/infomaker/im-articlename/{PLUGIN_VERSION}/style.css",
"enabled": true,
"mandatory": false,
"data": {
"charactersToCopy": 25,
"disableSetTitleOnSave": false
}
}
Property | Type | Required | Description |
---|---|---|---|
charactersToCopy | Number | false |
How many characters to use when using paragraph as title suggestion. Default value is 50. |
disableSetTitleOnSave | Boolean | false |
Option to disable automatic title on save when title is missing. If omitted will be set to false |
The plugin generates the XML output described below.
<newsItem>
<itemMeta>
<title>My title</title>
</itemMeta>
</newsItem>