Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Special Pages / Views

Help

The page under /hilfe is and basic page without content where a block from the Help menu is displayed using the module Menu block.

In this case, is configured as "Display all menu items"

In each Help content, another block is displayed using the same module and from the Help Menu but showing only the second menu level.

Teaser

Rest Page (/teaser) created from a view (/de/admin/structure/views/view/teaser_articles)  that return a list of JSON articles teasers from the entityqueue Teaser.

FAQ

...

(Fragen und Antworten)

This page  (/ueber-uns/fragen-antworten) is a view with a View page and an attachment View.

In the view Page (

Search/Facet

Journal

/admin/structure/views/view/fragen_und_antworten) it is created the list with all the titles from the FAQ content display in an HTML list ordered by FAQ Category. There also added in the Header a context area with a link with id="top" used to create the "To Top" link.

In the view attachment, is created by an unformatted list ordered too by the Category and displaying the Title and the body of the FAQ content.

The result is a page where at the beginning we see the list of links created in the page and after that, we see the titles with the content created in the attachment.

Archive

Search page of articles, where a list of articles with the display mode "Teaser Article Image M" will be displayed. And in the right sidebar, there is a Search field three blocks with facets if there are content with those facets, Category, Tag and Month, where the month is the month

when the articles were created.

Selecting the facets the list result and the facet list will change. The rule says that the selection of two facets items from the same facet it will be done with an OR, and if they are from a different facet it will be done with an AND.

When changing the language of the page the selection should be restored because the result is different.

Journal

The journal page is from the Auxiliar content type, using the panalizer to display those content with that layout.

In the panalizer profile, a block will be added to each layout position. That blocks will be created from the view /?destination=/de/admin/structure/views/view/overview_blocks

There are 15 blocks created from the entityqueue overview, using different displays mode (Square/Rectangular) depending on the position in the layout following the design. 

Custom modules

DDB also interest

...

If not article is found it will return a "Not found" message.

Entityqueues

An easy way to create a list of content. Using it the author can create easily that list and change the order of the elements.

Article Teaser

Here it is created a list of elements that later it will be used in the Rest view Teaser "/teaser" as a JSON list, and it will be used in the Frontend to create the list of teasers of the DDB Frontend Start Page.

Overview

Used to create the list of Articles and Exhibitions display in the /journal page. Depending on the position it will take a display mode Rectangular or Square.

Using this Entityqueues is created the next view /admin/structure/views/view/overview_blocks later used to create the template with the panelizer in the Auxiliar Content Type in the default display mode.

Media

In this project, all the images and files are added as a media, in order of creating a library of content to be reused.

Media types

Document Media

Used to add documents from the formats pdf zip doc docx

Image Media

Used to add images into the project, with copyright, description, link if required.

Image Group

Used to create a gallery of images, and display with the lightbox javascript library as is used in the Frontend.

Video

Used to add Video files from the formats mp4 mp3

Image Styles

Uses to create specific rules to handle the images, in order to show the image in the most optimized way but it looks as designed.

Responsive image styles

Every responsive image style will follow different breakpoints, in this case, it should choose the Journal Breakpoints that is following the specification of Bootstrap 3.

In the display mode of the content type, for the images fields, a Responsive Style should be selected.

Depending on each specific case, it will select a specific Image Style for each Responsive image Style and breakpoint.

Setting this like that, the browser will display the image in the Image Style according to the rules described in its Responsive Image Style profile.

Menu

Help

List of links used to create the menu blocks shows in the /hilfe page and in the hilfe contents.

Main

List of links display in the main menu of DDB Frontend, getting the Frontend JSON list as a Rest API, created from the module rest_menu_items and rest /api/menu_items/main

List of links display in the footer menu of DDB Frontend, getting the Frontend JSON list as a Rest API, created from the module rest_menu_items and rest /api/menu_items/footer

User Roles

In this project the user roles rights are incremental.

...

Custom Module "DDB Journal" that is a sub-theme from the Bootstrap Theme, that it uses Bootstrap 3

All the CSS and JS files used in the theme are described in the ddbjournal.libraries.yml file

CSS Files

In General in DDB Journal, there is the design for the DDB Journal specific Pages. The final result should be checked in the Frontend where the DDB Journal Pages will have applied the DDB Frontend CSS and the DDB Journal CSS.

There are different files for the different page sections and a general.css file where all the general rules are described.

The most different file is the mail.css used in the email version of the DDB newsletter.

JS Files

In the JS folder, the main file is event.js use to handle the calendar in the /termine page. That file uses the config.js file where is set the local variable cmd, that is used to build in the DDB Frontend an absolute URL to the DDB Journal.

This configuration in order to don't write the URL hard in the code and be able to write one per DDB Journal installation. The config.js is inside the git.ignore to don't be saved. 

 

Cronjobs

Drupal Cron runs every 3 hours, checking the current status of the site, including checking the new version of modules/core.

...