When a new article is created in Content Station for use in the default Multi-Channel Text Editor (which is the default text editor), various source files are referenced. These are used to determine the following aspects of the created article:
- Which and how many article components the article should contain
- Which and how many article components should be available to add at a later stage
- Which styles should be available for formatting the text
Info: The following information applies to Content Station version 9.2.1 or higher and Enterprise Server 9.2.1 or higher.
Note: Since Enterprise 9.2.1, the method of setting up this default article has changed. Use the link below to view the functionality for versions older than Enterprise 9.2.1.
Source files
In Enterprise 9.0.x, 9.1.x and 9.2.0, the creation of a new article is based on the following source files:
- An article template named 'default' which is set up across all Brands. In this file, the styles for formatting the text are defined.
- A configuration file named componentDefs.xml in which the article components are defined which should be included by default in the article, as well as the article components that can optionally be added to the article after it has been created.
Both files are retrieved and cached when the user logs in to Content Station. When the New Article button is clicked, the new article is created based on the information in the cached files (this process is explained in more detail at the end of this article, see Setting up the default article for Content Station 9).
Setting up the article template
The article template determines which styles are available for formatting the text. It is used across all Brands.
Step 1. In Enterprise Server, set up a Brand that can be accessed by all users who need to create new articles.
Step 2. Create the article template.
Note: This can only be done by using either InDesign or InCopy. Both have their advantages and disadvantages:
Note though that if the article template is only going to be used in Content Station, the article template only needs to have one component. This is because the actual number of article components is controlled by the componentDefs.xml file. Article templates that are also going to be used in InDesign or InCopy are not controlled by this file and therefore need to be set up in the way they are going to be used. For an environment in which the article template is going to be used in InDesign, InCopy and Content Station, creating the template in InDesign is therefore the best method. |
Steps for the InDesign workflow
Step 2a. Create a new layout.
Step 2b. Create one or more text frames and assign an appropriate Element label.
Step 2c. Define the required paragraph styles and character styles.
Step 2d. Save this article as an article template to the location specified in Step 1. Make sure to name the file 'default' (lower case, without the apostrophes).
Steps for the InCopy workflow
Step 2a. Create a new document in InCopy.
Step 2b. Create any paragraph styles and character styles as necessary.
Step 2c. Save this article as an article template to the location specified in Step 1. Make sure to name the file 'default' (lower case, without the apostrophes).
Setting up the componentDefs.xml file
The componentDefs.xml file defines which article components should be included by default in the article, and which article components should be available to optionally add to the article at a later stage (by using the Components list in the Multi-Channel Text Editor).
The file can be configured to work across all Brands and/or to work across specific Brands.
Step 1. Access the componentDefs.xml file.
<Enterprise Server path>/config
The article components are defined between the <components> </components>
tags.
The following syntax is used:
<component name="name" default="false" parastyle="" allowmultipleinstances="true"/>
- name is the name of the component. Make sure that it corresponds with the name of the components that are set up in other areas of Enterprise, such as in Smart Connection for InDesign and InCopy.
- default determines whether the component should be included when a new article is created or should be made available to be added manually. Possible values: "true" for automatically added, "false" for not manually added.
- allowmultipleinstances defines if the component can be used more than once. Possible values: "true" and "false".
Note: When this value is set to "false", the component is removed from the Components list in Content Station as soon as the user adds the component to the article (thereby allowing the component to be used only once).
Example: You might want to use this for components such as the "graphic" component to allow the user to add multiple images to the article.
Step 2. Configure the required default components and optional components as necessary.
Configuration example for automatically adding components
The following is an example of the 'head' component which is added automatically each time a new article is created, as defined by the 'default=true' status.
<component name="head" default="true" parastyle=""/>
See this setup explained in this video:
Configuration example for manually adding components
The following is an example of the 'caption' component which has to be added manually, as defined by the 'default=false' status.
<component name="caption" default="false" parastyle=""/>
See this setup explained in this video:
Configuration for all Brands versus configuration for specific Brands
The <components> </components>
tags are themselves placed between the <brand> </brand>
tags. These carry an ID by which you can define to which Brands the settings apply.
When only one Brand is defined, the ID is set to "default" and all settings are used across all Brands:
<brand id="default">
To make the settings specific to a Brand, we can replace "default" by the Brand ID:
<brand id="1">
Step 1. Open a Web browser and log in to Enterprise Server.
Step 2. In the Maintenance menu or on the Home page, click Brands. A page showing a list of all Brands appears.
Step 3. Click on the Brand for which you need the ID.
The Brand Maintenance page appears. The Brand ID is shown at the end of the URL in the address bar of the browser.
Example: Here, the Brand ID is 1:
|
We also have to add the following line of code to make sure that the default settings for the Brand are overridden:
<components usedefaults="false">
Note: When this line of code is not provided or is set to 'true', the settings for the default Brand are used.
Typically, you would have settings set up for a default Brand, plus additional settings for each specific Brand.
Example: Here, settings for a default Brand is set up and one additional group of settings for Brand with ID '1'.
|
The technical workflow
For the creation of an article in the Multi-Channel Text Editor, the following actions take place:
- After log-on:
- The article template named ‘default’ is retrieved and cached in Content Station.
- The componentDefs.xml file is loaded.
- When the New Article button is clicked:
- The cached template in combination with the componentDefs.xml file is used to create the new article.
- The article components in the template are compared to those defined in the componentDefs.xml file.
- When an article component is present in the template but is not defined in the componentDefs.xml file, the article component is not included in the new article.
- When an article component is defined in the componentDefs.xml file as 'default=true' but is not present in the article template, it is included in the new article.
Source files
In Enterprise 9.2.1 and higher, the creation of a new article is based on the following source files:
- One or more article templates in which the default article components and the styles for formatting the text are defined. Multiple article templates can be set up within a Brand, each with different components and/or styling. This way, individual templates can be set up for each Publication Channel.
- A configuration file named componentDefs.xml in which the article components are defined that can optionally be added to the article after it has been created.
When the files are retrieved
When the user logs in to Content Station, the following is retrieved from Enterprise Server and cached in Content Station:
- A list of article templates that the user has access to
- The componentDefs.xml file
The required article template is retrieved from Enterprise Server at the moment when Content Station actually needs to create the article.
How Content Station determines which template to use
When Content Station is asked to create a new article, it checks where in Content Station that request is made (listed in the order in which it is checked):
- From within a Dossier
Examples
|
- Outside of a Dossier
Examples
|
When the request is made from within the Dossier, the following locations are checked for any suitable article templates (listed in the order in which they are checked):
- The Dossier where the request is made from
- All Brands that the user has access to
When the request is made outside of a Dossier, the following location is checked for any suitable article templates:
- All Brands that the user has access to
What is a suitable article template?
When an article template is found, Content Station checks the following properties to see if those of the found article template match those of the context (Dossier or Brand):
- Brand
- Publication Channel
- Category
It does this in the following order and combination:
- Brand, Publication Channel and Category of the Dossier
- Brand, Publication Channel of the Dossier
- Brand, Publication Channel and Category of the context
- Brand and Publication Channel of the context
- Brand and Category of the context
- Brand of the context
In other words:
If the request to create a new article is made from within a Dossier, that Dossier is checked for the presence of any article templates.
If an article template is present, Content Station first checks if the Brand, Publication Channel and Category properties of the article template are set to the same values as the values of the Brand, Publication Channel and Category properties of the Dossier.
If this is the case then that article template is used.
If this is not the case, Content Station checks if the Brand and Publication Channel properties of the article template are set to the same values of the Brand and Publication Channel properties of the Dossier.
If this is the case then that article template is used.
If this is not the case or when no article templates where present in the Dossier to begin with, then Content Station checks if any article templates outside of the Dossier exist.
If a template is found outside of the Dossier, the same types of checks are made to see if any combination of Brand, Publication Channel and Category of the article template as listed above match those of the Dossier. If a match is found, that article template is used.
The scenario where the request to create a new article template is made outside of a Dossier is somewhat different because no context exists that can be used to match the properties of the article template with.
In these scenarios, any template that belongs to any Brand that the user has access to is returned.
In case of multiple available templates
In scenarios where more than one template is available, all these templates are shown to the user. The user will then have to choose which of the templates to use.
In case no templates are available
When no templates are available, a message is shown. No article can be created until at least one suitable template is available.
Diagram
Example scenarios
Consider the following configuration:
Enterprise Server setup
# | Brand | Publication Channel | Category |
---|---|---|---|
1 | WW News | Print, Facebook | News, Sport |
2 | xTreme | Print, Facebook | News, Sport |
Article templates
# | Template name | Assigned Brand | Publication Channel | Assigned Category |
---|---|---|---|---|
1 | ww-news-print-news-default | WW News | News | |
2 | ww-news-print-sport-default | WW News | Sport | |
3 | ww-news-print-sport-football | WW News | Sport | |
4 | ww-news-facebook-default | WW News | ||
5 | ww-news-facebook-default2 | WW News |
Scenario #1
Context: A Dossier is opened that is assigned to Brand 'WW News' and Category 'News' and its content is viewed by having the Dossier Content selected. The Dossier does not contain any article templates.
Action: The Create Article button is clicked.
Result: Content Station looks for any article templates in the Dossier that are assigned to Brand 'WW News' and Category 'News'. No article template is available in the Dossier so article templates elsewhere in the system are referenced. Article template #1 'ww-news-print-news-default' is the only one in the system with a corresponding Brand and Category. Therefore that template is used.
Scenario #2
Context: A Publication Channel of type 'Print' is viewed that is assigned to Brand 'WW News' and Category 'Sport'. The Dossier does not contain any article templates.
Action: The Create Article button is clicked.
Result: Content Station looks for any article templates in the Dossier that are assigned to Brand 'WW News', Publication Channel 'Print' and Category 'Sport'. No article template is available in the Dossier so article templates elsewhere in the system are referenced. Two article templates exist which have the same Brand, Publication Channel and Category combination: #2 'ww-news-print-sport-default' and #3 'ww-news-print-sport-football'. A window appears showing these 2 templates from which the user has to make a choice.
Scenario #3
Context: A Publication Channel of type 'Print' is viewed that is assigned to Brand 'WW News' and Category 'Sport'. The Dossier contains the article template 'ww-news-print-sport-default' which is also assigned to the same Brand/Publication Channel/Category combination as the Dossier.
Action: The Create Article button is clicked.
Result: Content Station looks for any article templates that are assigned to Brand 'WW News', Publication Channel 'Print' and Category 'Sport'. Because the article template that is present in the Dossier matches the Brand/Publication Channel/Category combination of the Dossier, that article template is used.
Note:This scenario is similar to scenario #2, but now with an article template added to the Dossier itself. Even though 2 article templates exist n the system with a matching Brand/Publication Channel/Category combination, the one in the Dossier is preferred over the other one. The user is therefore not asked to choose between the 2 available templates.
Scenario #4
Context: A Publish Form is opened that is set up for a Publication Channel of type 'Facebook' which is assigned to Brand 'WW News' and Category 'Sport'. The Dossier does not contain any article templates.
Action: The 'Create New Text Component' button is clicked.
Result: Content Station looks for any article templates in the Dossier that are assigned to Brand 'WW News', Publication Channel 'Facebook' and Category 'Sport'. No article template is available in the Dossier so article templates elsewhere in the system are referenced. No article templates exist that have the same Brand, Publication Channel and Category combination as the Dossier. The next best match is the combination of Brand and Publication Channel, for which 2 templates exist: #4 'ww-news-facebook-default' and #5 'ww-news-facebook-default2'. A window appears showing these 2 templates from which the user has to make a choice.
Scenario #5
Context: The Home page of Content Station is viewed.
Action: The 'Create New Article ' button is clicked.
Result: A window appears showing all templates of all Brands to which the user has access. The user has to choose the template to use.
Setting up the article template
The article template determines the default article components and the styles for formatting the text. By assigning it to a Brand/Publication Channel/Category combination, it can be targeted to a specific form of output.
Step 1. Create the article template.
Note: This can only be done by using either InDesign or InCopy. Both have their advantages and disadvantages:
Note though that if the article template is only going to be used in Content Station, the article template only needs to have one component. This is because the actual number of article components is controlled by the componentDefs.xml file. Article templates that are also going to be used in InDesign or InCopy are not controlled by this file and therefore need to be set up in the way they are going to be used. For an environment in which the article template is going to be used in InDesign, InCopy and Content Station, creating the template in InDesign is therefore the best method. |
Steps for the InDesign workflow
Step 1a. Create a new layout.
Step 1b. Create one or more text frames and assign an appropriate Element label.
Step 1c. Define the required paragraph styles and character styles.
Step 1d. Save this article as an article template. Assign it to a specific Brand/Publication Channel/Category combination to target it for use to that particular output.
Step 1e. Repeat these steps to create as many article templates as needed.
Steps for the InCopy workflow
Step 1a. Create a new document in InCopy.
Step 1b. Create any paragraph styles and character styles as necessary.
Step 1c. Save this article as an article template. Assign it to a specific Brand/Publication Channel/Category combination to target it for use to that particular output.
Step 1d. Repeat these steps to create as many article templates as needed.
Setting up the componentDefs.xml file
The componentDefs.xml file defines which article components can be added to the article after it has been created.
The file can be configured to work across all Brands and/or to work across specific Brands.
Step 1. Access the componentDefs.xml file.
<Enterprise Server path>/config
The article components are defined between the <components> </components>
tags.
The following syntax is used:
<component name="name" allowmultipleinstances="true"/>
-
name
is the name of the component. Make sure that it corresponds with the name of the components that are set up in other areas of Enterprise, such as in Smart Connection for InDesign and InCopy. -
allowmultipleinstances
defines if the component can be used more than once. Possible values: "true" and "false".
Note: When this value is set to "false", the component is removed from the Components list in Content Station as soon as the component is part of the article. This is the case when the component is already part of the article component, or when it is manually added by the user.
Example: You might want to use set this option to 'true' for graphic components while setting it to 'false' for the header component.
Step 2. Configure the required components as necessary.
Example:
|
Configuration for all Brands versus configuration for specific Brands
The <components> </components>
tags are themselves placed between the <brand> </brand>
tags. These carry an ID by which you can define to which Brands the settings apply.
When only one Brand is defined, the ID is set to "default" and all settings are used across all Brands:
<brand id="default">
To make the settings specific to a Brand, we can replace "default" by the Brand ID:
<brand id="1">
Step 1. Open a Web browser and log in to Enterprise Server.
Step 2. In the Maintenance menu or on the Home page, click Brands. A page showing a list of all Brands appears.
Step 3. Click on the Brand for which you need the ID.
The Brand Maintenance page appears. The Brand ID is shown at the end of the URL in the address bar of the browser.
Example: Here, the Brand ID is 1:
|
We also have to add the following line of code to make sure that the default settings for the Brand are overridden:
<components usedefaults="false">
Note: When this line of code is not provided or is set to 'true', the settings for the default Brand are used.
Typically, you would have settings set up for a default Brand, plus additional settings for each specific Brand.
Example: Here, settings for a default Brand is set up and one additional group of settings for Brand with ID '1'.
|
Related Information
About article components in Enterprise 9
Related Tasks
Creating a new article in Content Station 9 by importing content from another Publication Channel
Creating a new article in Content Station 9
Creating an article template in Content Station 9
Opening InCopy templates from Content Station 9
Opening InDesign layout templates from Content Station 9
Opening InDesign Layout Module templates from Content Station 9
Opening, saving and closing articles in Content Station 9
Opening, saving and closing files with Content Station 9 AIR
Opening, saving and closing files with Content Station 9 Web
Hiding the New Article icon from the Content Station 9 Home screen
Adding or removing styles in the Multi-Channel Text Editor of Content Station 9
Adding article components to an InCopy article in Content Station 9
Reference Materials
Comments
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
0 comments
Please sign in to leave a comment.