background preloader

Site building

Facebook Twitter

Building a map in Drupal 8. Adding a map to a Drupal 7 site is made easy by a variety of location storage and map rendering modules.

Building a map in Drupal 8

However, at the time of this post most of these modules don’t have an 8.x branch ready and therefore aren’t usable in Drupal 8. Since Savas has recently taken on a Drupal 8 mapping project, we decided to use the Leaflet library within a custom theme to render our map and the Views GeoJSON module to store our data. This tutorial is based on this excellent post about mapping with Leaflet and GeoJSON, so check that out for a great primer if you’re new to mapping.

Setup. Amazee Labs Drupal Development and Web Design Zurich Austin Cape Town. I have always loved the Drupal Views module, I use it to build almost everything and I am so excited that it is included in Drupal 8 Core.

Amazee Labs Drupal Development and Web Design Zurich Austin Cape Town

Primarily working as a front-end developer, I've used Views to output dynamic content, like a blog listing with image, title, teaser text and read more links, image carousels, product listings, contextual blocks showing related videos and so much more. Having been more of a front-end and site-building "clicker" (e.g. using the Drupal Admin UI to manage display) than a "coder" (using templates for theming for finer control over the markup) in views, I often opted for using View’s “Fields” format to create my teaser listings. Recently, creating more sites with Drupal 8, I've started using "View modes". Here is an example. The output In this example View of teasers, we have an icon in the top corner of the item, which has a link to that item’s content.

I've created two views. View 1: Custom Field Output. Using Paragraphs to Weave a Beautiful Content Tapestry. The woes of date input. One of the many new input types that HTML5 introduced is the date input type which, in theory, should allow a developer to provide the user with a simple, usable, recognisable method of entering a date on a web page.

The woes of date input

But sadly, this input type has yet to reach its full potential. Briefly, the date input type is a form element that allows the capture of a date from a user, usually via a datepicker. The implementation of this datepicker is up to the browser vendor, as the HTML5 specification does not tell vendors how to implement the input’s UI. The input itself can of course be used without using any of its available attributes: How to Change the Main Language of a Drupal site. Intro to Drupal 8 Vocabulary. How to Get a Views & Panels Site to Work with Workbench Moderation. Build a Blog in Drupal 8: Using Views.

Just when you thought Drupal 8 couldn't get more powerful; I give to you Views in core.

Build a Blog in Drupal 8: Using Views

Yes, the most installed module in Drupal is now part of core. No longer will you have to wait for Views to be upgraded to use the latest version of Drupal. Just install Drupal and start building your custom views page or block. For people who don't know, Views allows you to list Drupal content. That's a simple explanation, but it doesn't give the module the respect it deserves. For instance, you could create a page (/latest-reviews) which displays all the latest content by content type and sorted by created date. Now that Views is part of core, it's used throughout the administration section. Adding Responsive Images to Your Drupal 8 Site - Advomatic. Cowritten by Jack Haas and Amanda Luker Celebrating the first release candidate for Drupal 8, the Advomatic team has been testing things out, diving into not-so-well documented (yet!)

Adding Responsive Images to Your Drupal 8 Site - Advomatic

Waters. Building an Email Notification System for Drupal. Post date: October 14 2015.

Building an Email Notification System for Drupal

Custom Display Suite Fields in Drupal 8. Without question, Display Suite is one of the most popular modules in Drupal’s contributed modules history.

Custom Display Suite Fields in Drupal 8

It allows the creation of layouts, fields and exposes all sorts of other powerful tools we use to build the presentation layer of our Drupal sites. One of the more powerful features of Display Suite (DS) is the ability to create custom fields that can be displayed inside DS layouts alongside the actual core field values. In Drupal 7, this has been a very popular way of building layouts and showing dynamic data that is not strictly related to the output of any Field API field on the node (or other) entity.

Display Suite has been ported and is being maintained for Drupal 8. Depending on another contributed module called Layout Plugin, the D8 version offers much of what we have available in Drupal 7 and probably even more. Drupal 101: Installing Drupal 8. For people who may not be entirely familiar with the software development process, understand that it’s not like we start off with a fixed pool of issues which gets smaller as issues are resolved.

Drupal 101: Installing Drupal 8

For a relatively large project like Drupal, on-going development will inevitably introduce new issues. But if you take a look at the issue logs, the issues have been steadily trending downward since we started, and RC1 was finally released on October 7. Node smuggling, aka poor mans node_export. I needed to create a new webform on a production site recently.

Node smuggling, aka poor mans node_export

But as a dev, I don't have direct access to the production admin backend; I'm only allowed to push code changes and let the client's team migrate them to prod via drush updb. So I'm supposed to export the webform configuration to code, and deploy it via an update hook, but how? Because webform nodes are content not configuration, the Features module doesn't help. We generally use the Migrate module with CSVs for content staging, but the thought of exporting arbitrary webform config to CSV gives me the heebie jeebies.

The happy medium is node_export, that old-school module that gives a simple UI to export, copy-and-paste, and import a node's configuration across two sites. I found an even simpler module called webform_share that achieves the same serialization/deserialization webform config in just 200 lines of code. Should I Use Context or Panels for Drupal Sites? By Steve Burge There are multiple different ways to design a Drupal site.

Should I Use Context or Panels for Drupal Sites?

You can code your theme, or you can use modules such as Panels, Context and Display Suite. I'm reluctant to answer the question of which solution is "best", but we do often get asked about which approach Drupal site-builders should use. In this video, Robert Ring compares Context and Panels, explaining different situations in which he'd choose to use each module. If you want to learn more, we have full classes on Contextand Panels. About the author Steve is the founder of OSTraining. How to Create a Popular Articles View in Drupal. Everything that's Changed With Comments in Drupal 8. By Steve Burge Comments were one of the more basic features in Drupal 7. There was only type of comment and you had very limited modification and moderation options.

In Drupal 8, comments are vastly better. Here are 5 ways that comments have changed and improved: #1. Go to Manage > Content, and you'll see that Comments have their own tab. Inside the tab, "Published comments" and "Unapproved comments" are grouped together. Using migrations to provide default content. Here at Agaric we work a lot with install profiles and, more often than not, we have to provide default content. This is mostly taxonomy terms, menu links, and sometimes even nodes with fields. Drupal 8 multilingual tidbits 15: configuration translation basics. Up to date as of October 29th, 2015.

After a long 8 months break in the article series, we are back to talk about configuration translation basics. Why the long break? Well, both the configuration and content system was in heavy development with changes and I did not want to get you content that would be quickly outdated. In the meantime Alex Pott also posted a great set of articles titled Principles of Configuration Management Part 1 and Part 2 which serves as great introductions. Building custom content panes (aka ctools content types) in panels 3, and Drupal 7 - Pixelite. Often on Drupal sites you need the ability to create re-usable panel panes for use on the site. Each panel pane would need custom configuration, and could even be context aware (aware of were they are placed on the site). This is where ctools content types comes in. Ctools content types are one type of plugin that the ctools module provides. Out of the box, the ctools module provides a few content types to support core modules.

Agile Transformation – Eradicating Poverty – Human Rights – Open Source – Random – Batman. More a log than a guide, but you get the idea! Its a lengthy log this week, a lot got undone, done and then some. Backlog for the week: Fonts Contact Form (customise it) Translations (Lingotek) Take the site online Toy around with Drush Not part of the backlog, decided to update core, followed the instructions to the letter, used Drush and broke the site completely!