2018 Drupal News

ThinkShout: Unlocking the Mystery of Custom Twig Functions

When Drupal 8 came out, it introduced the Drupal community to the concept of separating the theming layer from the logic layer through the Twig templating language. This had many advantages. For one, instead of needing to know PHP, a themer could just know Twig – an extremely stripped-down templating engine that has a few syntax elements, minimal built-in operators, and only about 50 provided functions.... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

CKEditor is well-known software with a big community behind it and it already has a ton of useful plugins ready to be used. It is the WYSIWYG text editor which ships with Drupal 8 core.

Unfortunately, the many plugins provided by the CKEditor community can't be used directly in the CKEditor that comes with Drupal 8. It is necessary to let Drupal know that we are going to add a new button to... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

While creating content, there are pieces of information that are only relevant when other fields have a certain value. For example, if we want to allow the user to upload either an image or a video, but not both, you can have another field for the user to select which type of media they want to upload. In these scenarios, the Javascript States API for Drupal 8 can be used to conditionally hide and show the input elements for image and... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

TL;DR: For PHP Hexadecimals, Decimals and Octals are all Integers, so they must be declared as @param integer

While I was working on a patch I had to write the docblock of a function which received a hexadecimal number and I wasn't sure what I was supposed to put in the @type param.

I... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

Drupal 8 has a great AJAX Form API which includes some tools to create modal dialogs using the jQuery modal library. The Examples module even demonstrates how to create a custom form and display it in a modal window. But what if what you want to do is display an already created form in a modal? How do we do that? Let's see how to do it with... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

When you think of training, perhaps you remember an event that you were sent to where you had to learn something boring for your job. The word training does not usually make people smile and jump for joy, that is unless you are talking about Drupal training. These gatherings spread the Drupal knowledge and increase diversity in the community of Drupal developers.

Join us for the next Drupal Global Training Day with our online... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

Once a text field has data stored, it is not very easy or obvious how to change its maximum length. In the UI there is a message warning you that the field cannot be changed, because there is existing data. Sometimes it is necessary to change these values. It seems that there are a few ways and some resources to do this in Drupal 7, but I could not find a way to do this in Drupal 8. I decided to create a small function... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

Over 8 years have passed since there was a DrupalCamp in tropical Nicaragua. With the help of a diverse group of volunteers, sponsors, and university faculty staff, we held our second one. DrupalCamp Lagos y Volcanes ("Lakes & Volcanoes") was a great success with over 100 people attending in 2 days. It was a big undertaking so we followed giants' footsteps to prepare for our event. Lots of the... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

The program for DrupalCon is evolving constantly. Among the changes for Nashville 2018 new tracks have been added and some have been merged. That is the case for the Symfony and PHP tracks.

Many topics clearly belong to a single track, but others could fit in more than one. When we had a dedicated Symfony track a session about Twig could... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

A desktop computer with social media icons above.

Being able to share an article via a social network is a common request on a project.

Fortunately for Drupal 8 there is a module for that called Social... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Agaric Collective: <div class="flow_middle">

A woman pushing a giant rectangle with a right arrow within it.

Agaric is facilitating a full day training at DrupalCon Seattle to help you understand how to import content into your to Drupal 8 website.

This training is open for attendees... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Jacob Rockowitz: Webform for Drupal 8: DIY Accessibility

Caring about Webform accessibility

Caring about Webform accessibility was a significant and unexpected personal milestone that happened last year while working towards a stable release of the Webform module for Drupal 8. It’s not that I didn’t care about accessibility, I just never paid attention to it.

Mike... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Jeff Geerling's Blog: Rendering Twig templates programmatically in Drupal 8

From time to time, I have the need to take a Twig template and a set of variables, render the template, replacing all the variables within, and then get the output as a string. For example, if I want to have a really simple email template in a custom module which has a variable for first_name, so I can customize the email... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Acquia Developer Center Blog: Building Usable Conversations: Conversational Information Architecture

voice image
Last modified: 8 hours 48 min ago

Spinning Code: SC DUG September 2018

This fall the South Carolina Drupal User’s Group started using Zoom are part of all our meetings. Sometimes the technology has worked better than others, but when it works in our favor we are recording the presentations and sharing them when we can.

Chris Zietlow presented back in September about using Machine Learning to Improve UX.

Last modified: 8 hours 48 min ago

OpenSense Labs: The greatness of Behat for automated testing in Drupal

The greatness of Behat for automated testing in Drupal Shankar Mon, 01/28/2019 - 14:35
... - News from Planet Drupal
Last modified: 8 hours 48 min ago

OpenSense Labs: Efficacy of Drupal in building SaaS

Efficacy of Drupal in building SaaS Shankar Mon, 01/28/2019 - 01:15
Last modified: 8 hours 48 min ago

Joachim's blog: Unnatural file changes with git

When you check out a branch or commit with git, two things happen: git changes the files in the repository folder, and changes the file that tells it what is currently checked out. In git terms, it changes what HEAD points to. In practical terms, it updates the .git/HEAD text file to contain a different reference.

But these... - News from Planet Drupal

Last modified: 8 hours 48 min ago

Pages