Latest posts

Browse topics

Postcards from Crete

It has been now over a year since we visited the Greek island of Crete, during the past months I've already documented many stories from this trip. In today's Piece of Life series - one of the last days on the island back in 2017.

Town in Crete

Town in Crete

The town is most probably Argiroupoli, as somewhere in this area we enjoyed a cup of coffee, see: Palios Mylos Restaurant Review near Argiroupoli Springs, Crete

Rural Crete

Rural Crete

See: Discoveries in Crete - Rough Road To Balos Beach

Narrow roads in Crete

Narrow roads in Crete

See: Crazy, Stupid, Love - Tranquil Rough Adventures in Crete

Mountainous Crete

Mountainous Crete

Talsi Evangelical Lutheran Church

On the top of the abrupt Baznīcaskalns (Church Hill) stands the white masonry Talsi church – the dominant of the old town.

It was built in 1567 and later rebuilt for several times. A transept and sacristy are attached to a rectangular, elongated building.

Talsi Evangelical Lutheran Church

Talsi Evangelical Lutheran Church

The square bell-tower is attached on the west side of the church, it has a pyramidal spire with a sphere, rooster and a cross. The church spire, the rooster, the tiled roof, the façade and the interior were renovated in 1996 – 1998. The relics of the church witness its history.

The most brilliant among them are the epitaph of Fishers’ family (1794) that was carved in limestone and have some Classicism style features, and the altar painting “The Ascension of Christ” (1876) by K. Šēnherts (C. Schönherr).

Two stained-glass windows by Ludis Bērziņš adorn the church (1986, a present by Mirdza Kangare-Matule). There are two bronze bells in the church tower (The oldest of them -1601). Many eminent priests have served in this church. Karl Ferdinand Amenda is the most popular because he is linked to the name of the musician and composer Ludwig van Beethoven.

How To Embed YouTube video in Drupal 8 (CKEDITOR)

Now, there is one more reason I'm starting to enjoy Drupal 8, embedding YouTube videos in articles now are super easy, thanks to the simple and neat Drupal module - Video Embed Field

In this article, I will guide you through how to configure Drupal 8 built-in CKEDITOR to work with this module.

For another interesting YouTube module for use in Drupal views see Display YouTube videos on Drupal site with YouTube field module

Video Embed field creates a simple field type that allows you to embed videos from YouTube and Vimeo and show their thumbnail previews simply by entering the video's url.

Features

  • Responsive out the box, optionally make your videos scale proportionally to their container.
  • Large contrib ecosystem of video providers supported.
  • Easily pluggable, write simple plugins to support any video platform or provider.
  • Robust URL matching to support an array of possible inputs.
  • Display videos in a modal window, with Colorbox support.
  • Display thumbnails with image style support.
  • Role based autoplay override, allows configured roles to suppress video autoplay.
  • Easily overridable embed markup.
  • A direct WYSIWYG integration, provided by the video_embed_wysiwyg sub-module.
  • Integration with the media_entity module for websites using the media suite of modules.
  • Migrations to D8 from D7 as well as the D6 emfield module.

How to configure Video Embed field to work with CKEDITOR in Drupal 8

Download, install and enable Video Embed field, as we are going to use YouTube videos in the articles (and not in the views), enable Video Embed WYSIWYG (integrates video_embed_field directly into ckeditor. Useful for websites not using the media suite of modules that need WYSIWYG support.)

Visit "Configuration" > "Text formats and editors" > "Configure" your chosen editor. Then drag the video icon onto the ckeditor toolbar and make sure the "Video Embed WYSIWYG" input filter is enabled.

An example here: Hashflare releases Data-center video

Video Embed example

Video Embed example

How To Configure Trusted Host settings for Drupal 8 Website

In today's Drupal tutorial series I will talk about Trusted host settings, what they are and how to configure them.

In short, Trusted host settings protects against HTTP HOST Header attacks (prevent your site from thinking it is someone else).

Drupal 7 added a new feature into the core that is not user-facing directly but is sometimes called poor man's cron. The feature triggers the periodic tasks of a Drupal site like emptying log files, sending e-mails, and clearing out caches. This feature, when combined with dynamic detection of the "base url" (added in Drupal 4.7), can lead to some screwy situations.

Let's start with the oblivious, first noticed a warning in a Drupal 8 website, saying:

The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure this. See Protecting against HTTP HOST Header attacks for more information.

Warning about Trusted Host Settings in Drupal 8

Warning about Trusted Host Settings in Drupal 8

in case you are running a single website, the solution is simple, open settings.php file and add following code:

$settings['trusted_host_patterns'] = [
  '^www\.example\.com$',
];

For more complicated use, please see following article:  Trusted Host settings