Drupal Planet

Syndicate content
Drupal.org - aggregated feeds in category Planet Drupal
Updated: 9 hours 14 min ago

Aten Design Group: Does using drush uli in D8 and getting http://default drive you mad?

Thu, 2017-05-04 08:27

In Drupal 8, setting your sites domain in settings.php is no longer possible. In Drupal 7, you could set the base_url in settings.php like:

$base_url = 'http://domain.com';

Have you noticed in Drupal 8 that when you use drush uli it returns a url that starts with http://default! If you are tired of copying and pasting what comes after http://default/ or adding the --uri=http://domain.com flag along with drush uli I have a solution for you!

Meet the drushrc.php file. I prefer to put this one level higher than my Drupal root. So…

  • Project repo
    • webroot (public_html, web, docroot, etc)
    • drush/drushrc.php

Lots can go in the drushrc.php file, but if you simply want to fix the drush uli default issue, it can just have:

<?php   $options['url'] = 'http://domain.com';

If you are using GIT to manage your code base, you could consider a strategy of a drushrc.php file per environment. Example:

Create drush/drushrc.local.php

That file can contain:

<?php   $options['url'] = 'http://domain.dev';

Your main drushrc.php now looks like:

<?php   /** * If there is a local drushrc file, then include it. */   $local_drushrc = __DIR__ . "/drushrc.local.php"; if (file_exists($local_drushrc)) { include $local_drushrc; }

Now you can place drush/drushrc.local.php in your .gitignore file.

If you are using a PaaS like Pantheon, you can take this strategy:

Since Pantheon automatically handles setting the $options[‘url’] for you, you can simply say...if NOT Pantheon, use my local dev domain.

With the Pantheon approach, your drushrc.php file can look like:

<?php   if (!isset($_SERVER['PANTHEON_ENVIRONMENT'])) { $options['url'] = 'http://domain.dev'; }

I believe setting the $options[‘url’] has always been possible if using drush aliases, so continue on if you’ve always done that.

Now enjoy the infinite bliss when typing drush uli and having the correct domain returned.

Categories: Drupal

erdfisch: Girls Day 2017 at erdfisch

Thu, 2017-05-04 08:26
Girls Day 2017 at erdfisch 04.05.2017 Michael Lenahan Body:  Girls Day 2017 at erdfisch

Every year here in Germany we have Girls' Day. This is a day in which girls can see what it is like working in male-dominated industries (there is an equivalent Boys' Day as well).

We at erdfisch have been taking part in Girls' Day since 2015, so this was our third year. We had the privilege of welcoming Anna, Bianca and Franzi into our office in Heidelberg.

Why do this?

Why is it worth our time taking part in something like this?

Well, if you need a reminder of what a privilege it is to do your job, spend a day explaining the miracle that is open source web development to some teenagers.

I'm very proud of the fact that we are more than just a bunch of developers - in our work, we interact with other developers from other countries and other companies every day.

We meet at international events like the incredible Drupalcamp that took place in Iceland earlier this year.

We are participants in an extremely open way of working.

When explaining to teenagers how Drupal gets developed, you start to realise what an incredible privilege it is to have such a career.

It is, in itself, so much fun to explain why people around the world share their their time and talent for free, and how the economics of open source actually works.

It's more than just a job. It's a career or "calling" (in German, the word "Beruf" for career and "Berufung" for calling are very close).

And there is no reason why this privilege should only be available to men and not women.

Learning open source through Drupal site building

For me and my colleague Peter, Girls Day was a day in which we took time out from our work to explain how Drupal works, and to provide a full day's site building training.

This is a great benefit to us because it helps us to appreciate what it's like to be a beginner again, and to be a site builder.

It makes you find good examples of contributed modules that you can use to introduce the idea of Drupal's incredible extensibility.

We got the girls set up on https://pantheon.io/ - Pantheon is a great platform for trainings like this.

We introduced extensibility by swapping out the default Bartik theme with a modern alternative https://www.drupal.org/project/robotic.

Robotic has a nice slideshow function so that the girls could quickly personalize their sites with colors and slides.

Next, we got to working with content types and fields. We introduced the concept of adding a new type of field through the contributed geolocation module, which allows you to create a field with a location on a Google map.

From there, it was about adding our content, and then displaying content with views. We used calendar module to show how it was possible to build sophisticated views.

It didn't take long before the girls were working on their own concepts.

Anna built a showcase for her mother's store: http://dev-anna-felix.pantheonsite.io/

Bianca build a site which allows her schoolmates to log in and cast votes and choose destination for their school outing: http://dev-klassenfahrt.pantheonsite.io/

Franzi built a site for her music school orchestra: http://dev-musikschulorchester-wiesloch.pantheonsite.io/

Drupal 8 is getting to where we want it to be

It's been interesting running this event over the past three years, because we've been able to take a snapshot each year of how Drupal 8 is progressing in real life.

We're now at the point where Drupal 8 finally feels stable and fun to work with.

It's where we want it to be - a system which you can spend a day learning and really achieve something worth while. And understand how far you can go with it.

And how rewarding it is to be a part of this incredible thing. Don't let sexism, racism, snobbishness or any other thing exclude you from it.

Schlagworte/Tags:  planet drupal-planet Ihr Name Kommentar/Comment Kommentar hinzufügen/Add comment Leave this field blank
Categories: Drupal

Acquia Developer Center Blog: Pipelines Beta UI is Now Available!

Thu, 2017-05-04 06:52

We’re happy to announce that the web user interface for the Acquia Pipelines beta is now available to all those beta participants with subscriptions on Acquia Cloud! In addition to the CLI, we've now provided a great UI to enhance reporting and usage inside of the Cloud UI.

Tags: acquia drupal planet
Categories: Drupal

InternetDevels: Why Drupal is an ideal solution for your dropshipping site

Thu, 2017-05-04 06:14

Commerce is rapidly shifting to the Internet nowadays, because it is a vast territory that 
allows you to find sellers and buyers worldwide and make orders at any time. Maybe
you even have already created your own e-commerce site on Drupal.

Read more
Categories: Drupal

Agiledrop.com Blog: AGILEDROP: Other Top Drupal Blogs from April

Thu, 2017-05-04 03:45
Months quickly go by and it's once again time to look at the best work from other authors from the previous month. It's April's turn, so let us see the top Drupal blogs from April. We'll start our list with Jerome Zech and his Manage your digital assets with Bynder and Drupal 8. The author reveals that MD Systems implemented a module that integrates with the Bynder DAM and lets you use its assets directly in a Drupal 8 site. Our second choice is Tips for Setting up a Booth at DrupalCon by Brandon Williams. The author writes about his first experience in setting up a booth for any… READ MORE
Categories: Drupal

ADCI Solutions: Adding filtering by Nodequeue name in Search API Views

Thu, 2017-05-04 03:41

For some of the projects we built a search page made with Views. In order to improve performance we usually used the Search API module. But when we had to integrate Nodequeue in View, we faced a problem: Search API doesn’t have an integration with Nodequeue yet. A solution was found under the hood of Entity API.

 

Learn what the solution is.

Categories: Drupal

ADCI Solutions: Adding filtering by Nodequeue name in Search API Views

Thu, 2017-05-04 03:41

For some of the projects we built a search page made with Views. In order to improve performance we usually used the Search API module. But when we had to integrate Nodequeue in View, we faced a problem: Search API doesn’t have an integration with Nodequeue yet. A solution was found under the hood of Entity API.

 

Learn what the solution is.

Categories: Drupal

ADCI Solutions: Adding filtering by Nodequeue name in Search API Views

Thu, 2017-05-04 03:41

For some of the projects we built a search page made with Views. In order to improve performance we usually used the Search API module. But when we had to integrate Nodequeue in View, we faced a problem: Search API doesn’t have an integration with Nodequeue yet. A solution was found under the hood of Entity API.

 

Learn what the solution is.

Categories: Drupal

ADCI Solutions: Adding filtering by Nodequeue name in Search API Views

Thu, 2017-05-04 03:41

For some of the projects we built a search page made with Views. In order to improve performance we usually used the Search API module. But when we had to integrate Nodequeue in View, we faced a problem: Search API doesn’t have an integration with Nodequeue yet. A solution was found under the hood of Entity API.

 

Learn what the solution is.

Categories: Drupal

ADCI Solutions: Adding filtering by Nodequeue name in Search API Views

Thu, 2017-05-04 03:41

For some of the projects we built a search page made with Views. In order to improve performance we usually used the Search API module. But when we had to integrate Nodequeue in View, we faced a problem: Search API doesn’t have an integration with Nodequeue yet. A solution was found under the hood of Entity API.

 

Learn what the solution is.

Categories: Drupal

ADCI Solutions: Drupal &amp; Vue.js: how to work without jQuery

Wed, 2017-05-03 22:42

If you’ve been working with Drupal long enough you probably know that it has jQuery out of the box since the 5th version.

If you’ve been working with Drupal long enough you probably have already tried to find something instead of jQuery.

jQuery doesn’t solve the problems that developers face nowadays. But Vue.js does. Besides having many stars and downloads, a large and friendly community, it is supported by Laravel (PHP framework) out of the box.

Those were the reasons to start using Vue.js for enhancing  Drupal user elements without jQuery. If you feel like learning how to work with Vue.js components, integrate Vue.js with third-party libraries and you want to create a simple SPA on your own - keep on reading here.

Categories: Drupal

ADCI Solutions: Drupal &amp; Vue.js: how to work without jQuery

Wed, 2017-05-03 22:42

If you’ve been working with Drupal long enough you probably know that it has jQuery out of the box since the 5th version.

If you’ve been working with Drupal long enough you probably have already tried to find something instead of jQuery.

jQuery doesn’t solve the problems that developers face nowadays. But Vue.js does. Besides having many stars and downloads, a large and friendly community, it is supported by Laravel (PHP framework) out of the box.

Those were the reasons to start using Vue.js for enhancing  Drupal user elements without jQuery. If you feel like learning how to work with Vue.js components, integrate Vue.js with third-party libraries and you want to create a simple SPA on your own - keep on reading here.

Categories: Drupal

ADCI Solutions: Drupal &amp; Vue.js: how to work without jQuery

Wed, 2017-05-03 22:42

If you’ve been working with Drupal long enough you probably know that it has jQuery out of the box since the 5th version.

If you’ve been working with Drupal long enough you probably have already tried to find something instead of jQuery.

jQuery doesn’t solve the problems that developers face nowadays. But Vue.js does. Besides having many stars and downloads, a large and friendly community, it is supported by Laravel (PHP framework) out of the box.

Those were the reasons to start using Vue.js for enhancing  Drupal user elements without jQuery. If you feel like learning how to work with Vue.js components, integrate Vue.js with third-party libraries and you want to create a simple SPA on your own - keep on reading here.

Categories: Drupal

ADCI Solutions: Drupal &amp; Vue.js: how to work without jQuery

Wed, 2017-05-03 22:42

If you’ve been working with Drupal long enough you probably know that it has jQuery out of the box since the 5th version.

If you’ve been working with Drupal long enough you probably have already tried to find something instead of jQuery.

jQuery doesn’t solve the problems that developers face nowadays. But Vue.js does. Besides having many stars and downloads, a large and friendly community, it is supported by Laravel (PHP framework) out of the box.

Those were the reasons to start using Vue.js for enhancing  Drupal user elements without jQuery. If you feel like learning how to work with Vue.js components, integrate Vue.js with third-party libraries and you want to create a simple SPA on your own - keep on reading here.

Categories: Drupal

ADCI Solutions: Drupal &amp; Vue.js: how to work without jQuery

Wed, 2017-05-03 22:42

If you’ve been working with Drupal long enough you probably know that it has jQuery out of the box since the 5th version.

If you’ve been working with Drupal long enough you probably have already tried to find something instead of jQuery.

jQuery doesn’t solve the problems that developers face nowadays. But Vue.js does. Besides having many stars and downloads, a large and friendly community, it is supported by Laravel (PHP framework) out of the box.

Those were the reasons to start using Vue.js for enhancing  Drupal user elements without jQuery. If you feel like learning how to work with Vue.js components, integrate Vue.js with third-party libraries and you want to create a simple SPA on your own - keep on reading here.

Categories: Drupal

Jeff Geerling's Blog: Composer and Drupal are still strange bedfellows

Wed, 2017-05-03 19:31

More and more sites are being built in Drupal 8 (over 160,000 as of DrupalCon Baltimore 2017!). As developers determine best practices for Drupal 8 site builds and deployment, they need to come to terms with Composer. In one of the most visible signs that Drupal is 'off the island', many modules are now requiring developers to have at least a fundamental grasp of Composer and dependency management.

But even more than that, many developers now use Composer in place of manual dependency management or a simpler tools like Drush Make files.

With these major changes comes some growing pains. Seeing these pains on a daily basis, I wrote Tips for Managing Drupal 8 projects with Composer to highlight some best practices and tricks for making Composer more powerful and helpful.

But many developers still wrestle with Composer, and mourn the fact that deployments aren't as simple as dragging zip files and tarballs around between servers, or checking everything into a Git repository and doing a git push. For example:

  • If I manage my codebase with Composer and follow Composer's own recommendation—don't commit dependencies in my vendor directory, what's the best way to actually deploy my codebase? Should I run composer install on my production web server? What about shared hosting where I might not have command line access at all?
  • Many modules (like Webform) require dependencies to be installed in a libraries folder in the docroot. How can I add front end dependencies via Composer in custom locations outside of the vendor directory?

And on and on.


Over 3,000 community members attended DrupalCon Baltimore 2017.
(Photo by Michael Cannon)

During a BoF I led at DrupalCon Baltimore 2017 (Managing Drupal sites with Composer), we identified over 20 common pain points people are having with Composer, and for many of them, we discussed ways to overcome the problems. However, there are still a few open questions, or problems which could be solved in a number of different ways (some better than others).

I've taken all my notes from the BoF, and organized them into a series of problems (questions) and answers below. Please leave follow-up comments below this post if you have any other thoughts or ideas, or if something is not clear yet!

Categories: Drupal

myDropWizard.com: Drupal 6 security update for Remember Me

Wed, 2017-05-03 13:10

As you may know, Drupal 6 has reached End-of-Life (EOL) which means the Drupal Security Team is no longer doing Security Advisories or working on security patches for Drupal 6 core or contrib modules - but the Drupal 6 LTS vendors are and we're one of them!

Today, there is a Moderately Critical security release for the Remember Me module.

Remember Me adds a "Remember me" checkbox to the login form.

It had a bug where it would override the session cookie lifetime, regardless of whether the user checked "Remember me" or not. This could affect applications that set the session cookie lifetime to a very short value, like banking websites.

(A note about the timing of this release: The Drupal 7 fix was released on April 23rd, however, we don't have any customers who depend on this module. So, it falls outside of the set of modules that we usually release security patches for on the same day they are released. But this is a module we like, so we decided to port the fix! :-))

Here you can download the Drupal 6 patch.

If you have a Drupal 6 site using the Remember Me module, we recommend you update immediately!

If you'd like all your Drupal 6 modules to receive security updates and have the fixes deployed the same day they're released, please check out our D6LTS plans.

Note: if you use the myDropWizard module (totally free!), you'll be alerted to these and any future security updates, and will be able to use drush to install them (even though they won't necessarily have a release on Drupal.org).

Categories: Drupal

OpenLucius: Drupal 8 development: non-content | Part 1/3: Backend configuration form

Wed, 2017-05-03 10:20

Within a Drupal 8 website, there are usually a number of texts that the content manager must be able to manage but that are not real content items.

We resolve this by making a user-friendly configuration form in the backend of Drupal 8, accessible to content managers. This allows us to make sure that all non-content is easy to manage, so that content managers do not have to dig through all kinds of screens in a technical backend to find the correct settings.

Categories: Drupal

Acquia Developer Center Blog: Contribution Stories: Beyond Websites - Using Drupal for Digital Signs

Wed, 2017-05-03 09:53

Using Drupal 8 to power real-time signage systems. Drupal gets better when companies, organizations, and individuals build or fix something they need and then share it with the rest of us. Our community becomes better, stronger, and smarter when others take it upon themselves to make a positive difference contributing their knowledge, time, and energy to Drupal. Acquia is proud to play a part, alongside thousands of others, in making tomorrow’s Drupal better than today’s. One of them is Adam Weingarten and Mike Madison’s.

Tags: acquia drupal planet
Categories: Drupal

Powered By