This articles describes how the Kordiam (formerly Desk-Net) module for Drupal exchanges data between the two systems.
For setting up the module and connecting Kordiam and Drupal please refer to the post dedicated to the setup.
Kordiam and Drupal can exchange data in both directions. The system in which the story originates will determine the direction of the data exchange:
- Planned stories: Data flows from Kordiam to Drupal
- Breaking news and other non-planned stories: Data flows from Drupal to Kordiam
Use Case 1: Planned stories originating in Kordiam
These types of stories are typically planned and coordinated with Kordiam.
Once a story has been entered in Kordiam, most of the story's data is immediately transferred to Drupal. This immediate transfer can be restricted to certain status levels. If the story is not assigned to one of the triggering status levels no transfer will be initiated.
For example, you may want story data to transfer only after it reaches Draft status.
In Drupal the module automatically creates an article.
Now an editor can access the article, edit it and publish.
Use Case 2: Breaking news and other stories originating in Drupal
In some cases, you may need to publish an article without first planning in Kordiam (e.g., breaking news).
When you publish these stories with Drupal, the module ensures they appear in your Kordiam story lists. This way, your story lists are kept current no matter where the story originated.
Scope of data exchange
After data is transferred in either direction, certain types of data will be synchronized between the two systems. This means that future changes to either system will be reflected in the other.
The module synchronizes the following data:
- Story description
- Status
- Category
- Assigned user
- URLs
- Content
About 1. Story Description
If the story originates in Kordiam, the story description will be the default title in Drupal. Subsequent changes to either the title in Drupal or to the story description in Kordiam will not sync.
However, a hard-coded version of the story description from Kordiam is displayed on the article page in Drupal, ensuring the user always sees the current description.
If the story originated in Drupal its title is sent to Kordiam as the story description.
About 2. Status
Status levels are instantly synced between Drupal and Kordiam*.
Users typically use more status levels in Kordiam than in Drupal (which uses only Published and Unpublished). For this reason, the module allows you to map multiple status levels on one side to just one on the other.
For example, stories in Proposal or Accepted status level in Kordiam can both reflect as Unpublished in Drupal.
The Kordiam status level is displayed further below on the article edit page in Drupal.
*You may define which status levels do NOT trigger a data export, which will prevent them from syncing.
About 3. Categories / Tags
As with status levels, you can match Kordiam categories with Drupal tags.
Multiple categories in Kordiam can be matched with a single tag in Drupal and vice versa.
About 4. Assigned User
Users are automatically matched based on their email addresses.
When a story assignment is passed from Kordiam to Drupal, the module checks for a Drupal user with the same email. If the module finds a match, the article is assigned to that user.
Articles originating in Drupal and passing data to Kordiam work the same way.
About 5. URLs
Kordiam sends one URL to Drupal and receives two.
URL sent from Kordiam to Drupal:
- URL to story in Kordiam: Below the article body, the link "View in Kordiam" below the story description takes the user straight to the story in Kordiam.
Drupal URLs in Kordiam:
- URL to article in Drupal: This link takes the user straight to the editing form of the article in Drupal.
- URL to article on the website powered by Drupal: This is the URL to the article on the Drupal-powered website.
The two Drupal URLs received by Kordiam can be accessed in two places:
- Story lists: Hovering over a story entry opens a contextual layer. On the left part of the layer there are links to the article in Drupal and to the article on the Drupal-powered website.
- On the Detailed Entry form: Hovering over the platform name opens a contextual layer with the two links.
About 6. Content
Kordiam users can enter text and upload media files to their assignments in Kordiam.
This content is automatically transferred to Drupal.
Depending on the module settings, files are either sent
- Only to the Media Library in Drupal, or
- To both the article's body AND the Media Library.
Text is always sent straight to the article's body.
Note: Content matching is only possible in the Kordiam module for Drupal 7.
Content is not currently transferred in any way from Drupal to Kordiam. However, this is planned for future versions of the module.
End of data exchange
The data transfer stops completely or partially as soon as one of the following conditions has been met:
-
The article is in Published status in Drupal: In this case, Kordiam no longer updates the article's body. I.e. it no longer adds text, picture files, etc.
- The story’s Kordiam status level has been set to not trigger the export of data to Drupal.
Comments
0 comments
Please sign in to leave a comment.