This project is not covered by Drupal’s security advisory policy.
Import articles from Norwegian News Agency (Norsk Telegrambyrå; abbreviated NTB, wikipedia page: https://en.wikipedia.org/wiki/Norwegian_News_Agency) to Drupal nodes.
You need an account in NTB in order to use this module.
The module provides out of the box at admin/content/ntb-import a form with a simple textfield where a user with the relevant permission can type the (integer) ID of the article that they want to import.
Under admin/config/services/ntb the user with admin permission can set:
- Which node type will be used for importing the articles
- Which field of this node type will be used for the article's unique ID
- Which uid will be the owner of the imported node
- (Optionally) a path to a custom XSL file that will convert the contents from NITF to HTML
and also the authentication credentials.
The NTB API offers the articles in 3 forms:
- JSON
- XML NITF
- XML plain
This module uses the NITF endpoint, and reads the NITF XML to provide the values, because the automated distribution system that NTB provides for now, only pushes articles in the NITF form. So, if a developer wants to use this module as a basis to implement a service for reading the source that NTB distributes, they cannot use any other form. But this will be reconsireded and updated when the NTB finishes with their planned upgrade.
The module provides a series of hooks, to give the developers the needed flexibility in order to extend, and map values to fields. Out of the box, the module only fills the node's title, and one necessary field that will store the unique id of each article. Newer versions of the same article are stored as new revisions (though, this can be changed in the code with the proper hook implementation).
TODO: Create the .api.php file that will explain the hooks.
TODO: Write documentation.
Project information
- Project categories: Content editing experience
- Created by efpapado on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

