Articles

Drupal 8: Creating modal windows (pop-ups) with a form

Modal windows/dialog (AKA pop-ups) are great and provide a great experience for the end user - they allow for a quick display of content in an overlay without navigating to another page. Fortunately, it’s relatively straightforward to implement in Drupal 8.

Programmatically create/update a title for a new node

Here's how to do it with an entity builder callback without any additional contrib module like "Automatic Entity Label" or "Automatic Nodetitles", using only Drupal core functionality.

CSS & JS: Make Youtube responsive

You can make YouTube videos responsive with CSS. Wrap the iframe in a div with the class of "youtube-container" and apply the styles.

Site's administrators

Here is a very quick and simple example of how to create an administrator on any drupal 7 website.

Yahoo Finance + Highstock or Chart.js

The example which shows how to build a nice chart using a minimum of JS code written.