Skip to content

City-of-Helsinki/drupal-kaupunkitieto

Repository files navigation

Kaupunkitieto

Kaupunkitieto is a website project for the City of Helsinki's statistics and research unit. Technical implementation is based on the main City of Helsinki platform. Custom functionalities are added on top of it to match requirements for the kaupunkitieto instance.

Environments

Env Branch URL
dev * https://kaupunkitieto.docker.sh/
test dev https://drupal-kaupunkitieto.test.hel.ninja/
staging main https://drupal-kaupunkitieto.stage.hel.ninja/
production main https://kaupunkitieto.hel.fi/

Requirements

You need to have these applications installed to operate on all environments:

Create and start the environment

For the first time (new project):

$ make new

And following times to create and start the environment:

$ make fresh

Login to Drupal container

This will log you inside the app container:

$ make shell

Instance specific features

Custom content types

Article (article)

The Article content type is a remnant of the original Helfi platform's article content type. Although the Article content type has been removed from the Helfi platform config repository and other instances, it was never removed from this particular instance due to the differentiation between this instance and the Helfi platform. The Article content type is a blend of the News Item and Standard Page content types. It has its own theme and a few fields that are used to provide metadata to the article in article teaser display mode.

Custom paragraphs

Infograph (infograph_group, infograph)

The Infograph paragraph is a list of links and statistical values of various statistics. The list is presented in a carousel and is visually rendered as a tiled fact slideshow. The statistics are retrieved via API once a day.

Hero with search (hero)

Hero with search is a custom design for the Hero paragraph. It is used on the front page of the instance and is visually designed to differ from the HDBT theme hero search. See: markup and styles.

Content menu (content_menu)

The Content menu paragraph creates a sidebar menu from text paragraphs selected by the content producer. One text paragraph can be visible at a time, and the logic is handled by custom JavaScript.

Embed (embed)

With Embed paragraph a content producer can add an embedded infographic to the page. It is similar to Helfi media chart but instead of Powerbi it uses (Infogram)[https://infogram.com/].

Quick links (quick_links)

The Quick links paragraph lists a curated and visually prominent list of links on a page.

Customizations

Site search

The Site search is a customized view page that uses a database as a backend. The content is indexed via Search API. The search page uses facets and a text field to filter the search.