GraphQL for Drupalers - part 4 - fetching the entities

Posted by Amazee Labs - 29 Jan 2018 at 09:47 UTC
GraphQL for Drupalers - part 4 - fetching the entities

GraphQL is becoming more and more popular every day. Now that we have a beta release of the GraphQL module (mainly sponsored and developed by Amazee Labs) it's easy to turn Drupal into a first-class GraphQL server. In this series, we'll try to provide an overview of its features and see how they translate to Drupal.

Blazej Owczarczyk Mon, 01/29/2018 - 10:47 Logo Drupal/GraphQL

In the last post we talked about the basic building blocks of every GraphQL query - the fields. We've discussed their types and traits as well as described the rules according to which Drupal fields turn into GraphQL fields. This week we were going to expand the topic further and cover field creation, but Daniel Noyola asked an interesting question in the comment below one of the recent articles:

How can I filter the results in a nodeQuery? Like I would in a normal View or with the "where" clause in a SQL Statement. I noticed that it receives a NodeQueryFilterInput but I don't see how to use it.

Fetching entities based on a filter or a set of filters is a common use case, so let's focus on that first.

Read more

How to Setup and Run Automated Accessibility Testing using Windows 10 OS

Posted by Promet Source - 29 Jan 2018 at 09:36 UTC
Tools Needed: Step 1: Install Python then setup in Environment Variables

We Don't Need an Intro Tune

Posted by Gizra.com - 29 Jan 2018 at 06:00 UTC

Amitai and Adam discuss a 1.6 million dollar stamp sale, skill set mastery and technological decision making, and the value of slowing down. Along the way Amitai explains his indifference to Drupal 8 and why Gizra’s Drupal-Elm Starter Kit uses Drupal 7 and Restful 1.x.

Continue reading…

Give Your Drupal Articles More Visual Appeal with Boxout

Posted by OSTraining - 29 Jan 2018 at 05:10 UTC
Give Your Drupal Articles More Visual Appeal with Boxout

A boxout is a design element used mainly in magazines to enclose related information to the main article while retaining some type of connection. You can use it to add extra links related to your content or a small bio.

The "Boxout" contrib module helps you add this design element to your content directly in CKEditor. In this tutorial, you will learn how to do just that. Let’s start!

Setting up Xdebug with Lando and PhpStorm

Posted by DrupalEasy - 27 Jan 2018 at 18:05 UTC

Over the past few months, I've been test-driving various Docker-based local development environments with two goals in mind. First, as my "daily driver" for consulting work - I've been a long-time MAMP Pro user and I've been feeling for a long time that I need to modernize my local development tools. Second, I'm trying to figure out what is the most ideal local development environment for students of both our 12-week Drupal Career Online class (starts March 19) and our 6-week Mastering Professional Drupal Development Workflows with Pantheon (starts February 26) courses. 

One of the necessary skills for a professional Drupal developer (one who codes either modules or themes) is to be able run a solid debugging tool. As part of my evaluation of Lando, I decided to figure out how to set up local PHP debugging with Xdebug and PhpStorm on Mac OS X.

This process described below is largely based on a comment in an issue thread in the Lando issue queue by David Hunt - thanks, David!

My local setup includes:

Read more

PHP Netflix Eureka client

Posted by fluffy.pro. Drupal Developer's blog - 27 Jan 2018 at 18:05 UTC
Netflix Eureka is a REST service that is primarily used in the AWS cloud for locating services. It comes with a Java-based client. But if you need a PHP-based client - welcome under the cut.
Read more »

Tom Grandy on Backdrop, Drupal, and Education

Posted by Lullabot - 27 Jan 2018 at 16:04 UTC
In this episode, Matthew Tift talks with Tom Grandy, who oversees websites for 23 school districts. Tom describes himself as a journalist, a teacher, and a non-coder who helps out with documentation and marketing for Backdrop. He describes his experiences using proprietary software, finding Drupal, his involvement with Backdrop, and the challenges of using free software in K-12 education. Tom shares why people working in schools make decisions about technology most often based on cost, but that he believes we should also considers software licenses, communities, and other more philosophical factors.

Drupal Europe dates and conflicts

Posted by Drupal Europe - 27 Jan 2018 at 14:34 UTC

In 2018 there will not be a DrupalCon Europe organized by the Drupal Association, but it was loud and clear that the European Drupal community needs an opportunity to meet, connect and share.

A group of Drupal community volunteers took it upon themselves to put together an event, and to avoid confusion with the official DrupalCon, the “Drupal Europe” name was chosen. Drupal Europe is organised by this group in collaboration with the German Drupal Association and will be held on the week of September 10–14, 2018 in the beautiful Darmstadtium in Darmstadt, Germany, only 20 minutes drive from Frankfurt Airport.

In the enthusiasm of trying to fill in this huge gap, our team unfortunately did not consider all important conflicts that the dates of the event would incur for attendees and partly scheduled over religious holidays.

Read more

Tip of the day: how to debug Composer scripts with XDebug and PhpStorm

Posted by Frederic Marand - 27 Jan 2018 at 10:51 UTC
The problem: XDebug doesn't work for Composer scripts

PhpStorm is quite convenient to debug scripts with XDebug (do you support Derick for giving us XDebug ?): just add a "Run/Debug configuration", choosing the "PHP Script" type, give a few parameters, and you can start debugging your PHP CLI scripts, using breakpoints, evaluations, etc.

Wonderful. So now, let's define such a configuration to debug a Composer script, say a Behat configuration generator from site settings for some current Drupal 8 project. Apply the configuration, run it in debug mode, and ....

...PhpStorm doesn't stop, the script runs and ends, and all breakpoints were ignored. How to actually use breakpoints in the IDE ?

read more

Adding social media feed to website - or not?

Posted by TIP Solutions - 26 Jan 2018 at 13:04 UTC

When adding a social media (SoMe) feed or "some wall" like here on the right bottom corner to your webpage the big question is: Why would you put it to your site? Why is it there?

If the answer is something like "to get some content to your site." - consider again. The SoMe feed might benefit you or harm you depending how you manage it.

Here are some points to consider:

Social media SoMe Drupal 8 SoMe wall Planet Drupal

Emboss your footprints in the Drupal Sand - Drupal Camp Goa 2018, Call for sessions

Posted by Love Huria - 26 Jan 2018 at 00:00 UTC

We are thrilled to bring you the most exciting event of this year Drupal Camp Goa 2018! You would be ecstatic to be a part of something really big that’s happening in India’s most sought-after destination, Goa. It’s a shoutout for all of you who love developing and would like to extend their immense support to the web’s leading content management system (CMS), Drupal!

Drupal Camp Goa 2018

Why should Drupalers have all the fun!

This time it is not just Drupal, we are exploring beyond it. Join us to share your knowledge on topics like...

Rock and a Hard Place: Changing Drupal.org Tooling

Posted by Lullabot - 25 Jan 2018 at 23:17 UTC
Matt and Mike talk with the Drupal Association's Tim Lehnen and Neil Drumm about the changes to Drupal.org's tooling.

HHVM deploys off into the sunset

Posted by Platform.sh - 25 Jan 2018 at 20:58 UTC
HHVM deploys off into the sunset Crell Thu, 01/25/2018 - 20:58 Blog header

We always aim to offer our customers the best experience possible, with the tools they want to use. Usually that means expanding the platforms and languages we support (which now stands at six languages and counting), but occasionally it means dropping tools that are not being used so that we can focus resources on those that are.

For that reason, we will be dropping support for the HHVM runtime on 1 March 2018.

HHVM began life at Facebook as a faster, more robust PHP runtime. Although it never quite reached 100% PHP compatibility it got extremely close, and did see some success and buy-in outside of Facebook itself. Its most notable achievement, however, was providing PHP itself with much-needed competition, which in turn spurred the work that resulted in the massive performance improvements of PHP 7.

Similarly, Facebook's "PHP extended" language, Hack (which ran on HHVM), has seen only limited use outside of Facebook itself but served as a test bed and proving ground for many improvements and features that have since made their way into PHP itself. Like HHVM itself, though, Hack never achieved critical mass in the marketplace outside of Facebook.

Back in September, Facebook announced that they would be continuing development of Hack as its own language, and not aiming for PHP compatibility. Essentially Hack/HHVM will be a "full fork" of the PHP language and go its own way, and no longer try to be a drop-in replacement for PHP.

Read more

How to Set Up Responsive Images in Drupal 8

Posted by Promet Source - 25 Jan 2018 at 18:56 UTC
Responsive images are great! If I wanted to quickly introduce what responsive images are to some, I would say: On mobile? Small images. Tablet? Medium images. Desktop? Large images. This article is a complete "how to" in setting up responsive images in Drupal 8.  If you are using Drupal 7, check out my previous article here: Picture Module: Building Responsive Images in Drupal 7.

Decoupled Drupal: A Guide for Marketers

Posted by Phase2 - 25 Jan 2018 at 17:58 UTC

If you are considering a move to Drupal 8, or upgrading your current Drupal platform, it’s likely that you’ve come across the term “decoupled Drupal”, aka “headless Drupal”. But do you know what it means and what the implications of decoupled Drupal are for marketers? In this guide we will define decoupled Drupal and share three reasons why marketers should consider a decoupled architecture as they evolve their digital experience platforms.

Drupal Commerce 2: Set up Product Attributes using Rendered Fields

Posted by Acro Media - 25 Jan 2018 at 16:53 UTC

In part one of this Acro Media Tech Talk video series, we covered how you set up a new product attribute in Drupal Commerce 2. A product attribute is used to define options that customers would select when buying a product. For example, a hat might have various sizes (small, medium, large) and colours available. These are attributes.

In part two, we'll now take a colour attribute that was set up in part one, but change it into a "rendered attribute". By default, the customer would select the option by seeing the name of the colour. A rendered attribute lets us instead show a colour swatch. So, instead of seeing the work "blue", the customer would see the actual colour. Cool!

This entire video series, when complete, will show you how to set up a new product in Drupal Commerce 2, from start to finish. The video is captured using our Urban Hipster Commerce 2 demo site.

Next week we'll post part 3: Set up a Product Variation Type with Custom Fields

Its important to note that this video was recorded before the official 2.0 release of Drupal Commerce and so you may see a few small differences between this video and the official release now available.

Urban Hipster Commerce 2 Demo site

This video was created using the Urban Hipster Commerce 2 demo site. We've built this site to show the adaptability of the Drupal 8, Commerce 2 platform. Most of what you see is out-of-the-box functionality combined with expert configuration and theming.

Read more

DrupalCon Nashville and Tennessee’s Discrimination standing

Posted by Drupal Association blog - 25 Jan 2018 at 15:51 UTC

As many already know, DrupalCon North America 2018 will be held in Nashville, TN. The Drupal Association puts a lot of time and effort into choosing a site for DrupalCon North America - a two to three year process that involves request for proposals, several rounds of interviews, site visits and contract negotiations. We do not take this lightly and we include both logistically important and socially relevant questions for review.

Unfortunately, sometimes things happen outside of our control, despite our great lengths of planning. In April 2016, after a 5-month RFP and interview process, we signed a contract with the City of Nashville to host DrupalCon North America 2018. A few weeks later, the State of Tennessee introduced and passed a new law that Drupal Association does not support, and as many community members have pointed out - prevents public employees from the State of California from attending DrupalCon if sponsored by their employer.

For those who have asked, the timeline of events transpired as follows:

Read more

Data inheritance in Pattern Lab

Posted by aleksip.net - 25 Jan 2018 at 12:26 UTC
When Pattern Lab renders a pattern, it does not by default include the data for any included patterns. There are plugins that can be used to include this data, but the many different ways to include patterns within another and to implement data inheritance can cause confusion.

Drupalcon mentored core sprint - part 3 - what happens next?

Posted by erdfisch - 25 Jan 2018 at 11:36 UTC
Drupalcon mentored core sprint - part 3 - what happens next? 25.01.2018 Michael Lenahan Body: 

Hi there! This is the third and final part of a series of blog posts about the Drupal Mentored Core Sprint, which traditionally takes place every Friday at Drupalcon.

If you want to read what came before, here you go:
Part one is here
Part two is here

In this blog post, I would like to show you a little of what happens behind the scenes at the Drupalcon Friday contribution sprint.

The live core commit

Drupal Core Live Commit

The day is completed by the core live commit. This is where one issue that was worked on during the day is committed to Drupal's git repository.

In Vienna, the issue that got committed was https://www.drupal.org/node/2912636, the contributors on Friday were gido and wengerk. They were mentored by the wonderful valthebald, who we met in part two.

Drupal Core Live Commit

This is the moment, when lauriii committed the code to the 8.5.x branch of Drupal, ably assisted by webchick:

Drupal Core Live Commit

Read more

Local Drupal Development Roundup

Posted by Lullabot - 24 Jan 2018 at 20:35 UTC

If you’d asked me a decade ago what local setup for web development would look like, I would have guessed “simpler, easier, and turn-key”. After all, WAMP was getting to be rather usable and stable on Windows, Linux was beginning to be preinstalled on laptops, and Mac OS X was in its heyday of being the primary focus for Apple.

Today, I see every new web developer struggle with just keeping their locals running. Instead of consolidation, we’ve seen a multitude of good options become available, with no clear “best” choice. Many of these options require a strong, almost expert-level of understanding of *nix systems administration and management. Yet, most junior web developers have little command line experience or have only been exposed to Windows environments in their post-secondary training.

What’s a developer lead to do? Let's review the options available for 2018!

1. The stack as an app: *AMP and friends

In this model, a native application is downloaded and run locally. For example, MAMP contains an isolated stack with Apache, PHP, and MySQL compiled for Windows or macOS. This is by far the simplest way to get a local environment up and running for Mac or Windows users. It’s also the easiest to recover from when things go wrong. Simply uninstall and reinstall the app, and you’ll have a clean slate.

However, there are some significant limitations. If your PHP app requires a PHP extension that’s not included, adding it in by hand can be difficult. Sometimes, the configuration they ship with can deviate from your actual server environments, leading to the “it works on my local but nowhere else” problem. Finally, the skills you learn won’t apply directly to production environments, or if you change operating systems locally.

Read more

Pages

Subscribe with RSS Subscribe to Drupal.org aggregator - Planet Drupal