Automatic publishing of public documents as web pages

Programmatical creation and update of content through JSON in Drupal 9

Authors

  • Rodrigo Westphalen Unisinos - Universidade do Vale do Rio dos Sinos: São Leopoldo, RS
  • Marcelo Santos Escolas e Faculdades QI: Gravataí, Rio Grande do Sul, BR https://orcid.org/0000-0003-2280-2947

Keywords:

Institutional Website, Automation, PHP, Drupal Migration, JSON

Abstract

This article describes the technical solution developed for the automatic and periodic import, publication and update of information from the Carta de Serviços (Charter of Service) of the Municipality of Novo Hamburgo on its institutional website. The portal uses the Drupal tool for content management and the Charter of Service is managed by an internal software. Free Software, WCMS, Content and Modularity concepts are discussed. The source code of the solution is presented, it’s use is demonstrated, and the identified software requirements are compared with the developed solution. The solution is based on creating a contrib module, a Migration configuration, and linking a PHP function to Drupal's Cron for fetching data at a web service. The configuration of a custom plugin for processing Migration data is also presented.

Author Biographies

Rodrigo Westphalen, Unisinos - Universidade do Vale do Rio dos Sinos: São Leopoldo, RS

Graduando em Jornalismo e Análise e Desenvolvimento de Sistemas pela Universidade do Vale do Rio dos Sinos, São Leopoldo, RS.

Marcelo Santos, Escolas e Faculdades QI: Gravataí, Rio Grande do Sul, BR

Marcelo Santos has an academic background in the areas of Computing and Education, with experience in software development, systems analysis and technological education. He works as a teacher in technological courses of informatics and as a Systems Analyst in the Municipality of Novo Hamburgo, leading projects of digital inclusion and development of websites and portals.

Published

2023-08-01

How to Cite

Westphalen, R., & Santos, M. (2023). Automatic publishing of public documents as web pages: Programmatical creation and update of content through JSON in Drupal 9. REFAQI - REVISTA DE GESTÃO EDUCAÇÃO E E TECNOLOGIA, 14(1), 27. Retrieved from https://refaqi.faqi.edu.br/index.php/refaqi/article/view/139