Skip to Content

Planet Drupal

Syndicate content
Drupal.org - aggregated feeds in category Planet Drupal
Updated: 1 day 3 hours ago

Pronovix: Behat coverage for all of Drupal - how it could be done

2 July 2014 - 12:54am

There is a lot of excitement in the Drupal community about Behat, especially from more advanced teams that are investing in their Devops infrastructure. It now even looks like Behat might some day make it into Drupal core. I guess that is why several Web development teams that use BDD (Behavior-Driven Development) have asked me how WalkHub relates to Behat. I’ve written a longer post on the WalkHub blog that explains how it could be done, and what the benefits would be. In this post I will focus on how WalkHub could help the community complete the creation of Behat tests for all of Drupal core and contrib.

Categories: Drupal

Drupal Association News: Drupal.org team week notes #27

1 July 2014 - 9:24pm

Upcoming deployments: CDN switch for Drupal.org

We have successfully switched all of the Drupal.org sub-sites over to our CDN (Content Delivery Network) provider. On July 2nd we will be pointing Drupal.org (www.drupal.org) at our CDN. This deployment improves our ability to serve static files (images, javascript, css, patches, etc.) and improves our network routes outside of North America.

Looking for community feedback

Community Tools Team is working on new layout for user profiles on Drupal.org. The first iteration of mockups is now open for community feedback.

Previous deployments

We deployed lots of things on Drupal.org in the previous few weeks. Here is a list of most significant deployments:

Drupal.org infrastructure news

We are working to improve many pieces of Drupal.org. Over the last month we have made improvements to our development environments with continued migrations to our OpenStack cluster, upgrades to CentOS 6, and increased disk speed and capacity.

Additional features on our CDN account also enabled us to shift project usage data gathering from our local Varnish logs to CDN logs. This let us push nearly 7TB of traffic a month off of our servers and network off to our CDN, freeing up resources for Drupal.org and Git.

We have been making good progress on migrating Git from a single node to a highly available pair of servers for improved redundancy, reliability and performance.
Monitoring improvements are being added as time allows, and we will be rolling out a new monitoring server with Icinga and Cacti.

Other news Drupal.org User Research

We kicked off Drupal.org user research with a full-day workshop at DrupalCon Austin. You can find our summary and some outcomes of the workshop in this blog post. Right now we are busy conducting remote interviews with Drupal.org users all over the world. Expect more updates from the team in the next couple of weeks.

Drupal Jobs

Drupal Job is coming soon. We have just a couple more features to be launch ready. (In particular, we are figuring out coupon codes and adding some finishing polish.) We hope to launch around mid-July.

DrupaCon Austin

Thank you to those who joined us in Austin for sprints related to Drupal.org. We were able to make some progress on many of the issues that led to the flood of deployments over the past couple of weeks.

Thanks also to those that took the time to be interviewed by the user research team led by Whitney Hess. You gave us a ton of useful information to incorporate into the personas we are developing for our redesign efforts. There were several intriguing feature requests that came out of those interviews as well.

---
As always, we’d like to say thanks to all volunteers who are working with us and to the Drupal Association Supporting Partners and Technology Supporters, who made it possible for us to work on these projects. The Supporting Partner Program crowd sources funds that pay for the development team’s time and Drupal.org hosting costs.

Cross-posting from g.d.o/drupalorg

Personal blog tags: week notes
Categories: Drupal

Chapter Three: Drupal WYSIWYG Best Practices

1 July 2014 - 1:19pm

Until Drupal 8 arrives, setting up effective WYSIWYG content editing falls to us developers. For many developers, figuring out the available options and their pros and cons can be difficult. Their main goal is to have a usable site up and running as soon as possible. Over the years, I've settled on a recipe that seems to work well for most clients. Other developers that I know often use a similar setup.




CKEditor



I use CKEditor with IMCE as an image and file browser, and I install a variety of add-on modules and plug-ins to make everything usable. Drupal 8 will use CKEditor by default, though its image handling is, thus far, immature and incomplete.




IMCE

Categories: Drupal

Mediacurrent: Digital Marketing Audit for Drupal Websites

1 July 2014 - 1:12pm

Getting the best value from your digital channels demands understanding what works and why. Many brands have websites and email programs that are failing to engage their stakeholders, generate leads, build brand equity and create the real value they could.

This month, our Digital Strategy team is giving away a free Digital Marketing Audit. Our audit will look at the major aspects of your online presence aimed at getting more visitors to your website and converting them into customers.

Categories: Drupal

Aten Design Group: Recent Aten Open Source

1 July 2014 - 11:05am

Aten is always looking for good opportunities to contribute useful code around the open source software we use. Here are some opportunities we've found recently.

New Projects Updates to Existing Projects
  • View Mode Page — Rob managed the issue queue.
  • Node Embed — A few of us managed the issue queue.
  • @font-your-face — Scott managed the issue queue.
  • OpenAid — Several of us worked on a new design and managed the issue queue.
Sites

Take a look at the open source projects we're working on, and get involved! All of these projects are happening in the linked open collaboration spaces, so it's easy to see what's happening. But if you'd like a guide to getting plugged in, get in touch.

Categories: Drupal

kevinquillen.com: Using Live Templates in PHPStorm

1 July 2014 - 10:10am
PHPStorm and the JetBrains suite of products are without a doubt, the best IDEs on the market for their respective applications. If you do a lot of custom development, you owe it to yourself to learn and use every tool this IDE can afford you.
Categories: Drupal

Drupal core announcements: This Month in Drupal Documentation

1 July 2014 - 8:22am
Welcome to the second This Month in Drupal Documentation!

"This Month in Drupal Documentation" (TMIDD) is an approximately monthly update from the Documentation Working Group (DocWG) on what has been happening in Drupal Documentation in the last month or so. Sorry... because this is posted in the Core group as well as Documentation, comments are disabled.

If you have comments or suggestions, please see the DocWG home page for how to contact us. Thanks!

Notable Documentation Updates

See note above on Suggestions if you'd like to be listed here in our next post!

Thanks for contributing!

Since May 29th (our previous TMIDD post), 262 contributors have made 1216 (wow!) total Drupal.org documentation page revisions, including 8 people that made more than 30 edits (lolandese, acabouet, drupalshrek, jhodgdon, gisle, realityloop, brycefisherfleig, and Gábor Hojtsy) -- thanks everyone!

In addition, there were many many commits to Drupal Core and contributed projects that improved documentation -- these are hard to count, because many commits combine code and documentation -- but they are greatly appreciated too!

Documentation Priorities

The Current documentation priorities page is always a good place to look to figure out what to work on, and has been updated recently.

If you're new to contributing to documentation, these projects may seem a bit overwhelming -- so why not try out a New contributor task to get started?

Upcoming Events Report from the Working Group
  • We've been working on the Policies section of the DocWG pages, and it's taking shape. So far, it mostly contains existing policies, but we also recently discussed and adopted guidelines for what to do about obsolete documentation and added it there.
  • We've streamlined the Contribute to Documentation pages so that they're actually possible to read in one sitting. There was a lot of obsolete and duplicated information in there; not so much now!
  • We are still looking through all of the suggestions and ideas the community has had in the past for how to improve documentation policies, procedures, and tools (and achieve our goals). We are getting closer to making a list of priorities... watch this space for updates!
  • Video files can now be updated on drupal.org on documentation (and other) pages. Check out this issue for more information: https://drupal.org/node/1246118
  • The software on https://api.drupal.org was recently updated, mostly with new features for Drupal 8, including a list of Services (see right sidebar navigation) and displaying Traits. Thanks to the infrastructure team for making this possible (the new Drupal 8 features required PHP 5.4, and the site is running PHP 5.3, so it was a bit tricky!).
Categories: Drupal

Drupal Association News: Announcing Our New Hosting Supporter Program

1 July 2014 - 8:12am

Our members, partners and supporters are the lifeblood of the Drupal Association and everything we do to help foster the Drupal project. Today, we’re making it even easier for organizations to support the Drupal Association and get great benefits in return.

We’re thrilled to announce our new Hosting Supporters Program, which has been specifically designed for Drupal hosting providers who publish great Drupal sites. We frequently hear from hosting providers who want to give back and invest in the project because a rising tide lifts all boats. Since all three of our Supporter programs fund Drupal.org improvements, the Hosting Supporter program is a great new option to do just that. 

The new program brings a third option to our programs for companies (Supporting Partner Program for Drupal design and development shops and Technology Supporter Program for third party software vendors that help build great sites are the other two) and means hosting providers now have a program tailored to their desire to promote Drupal and connect with the community. There are several companies who have already joined.

Why a third option?

We put this together because variety is the spice of life! Well, that, and the fact that our supporter companies enable us to make a difference, and we want to make that as easy as possible for them. It didn’t make sense to bundle hosting providers in with our Tech Supporters program, which is designed for third party software vendors, or Supporting Partner program, which is designed for Drupal design and development shops – so we created a new category.

What is a Hosting Supporter?

A Hosting Supporter is a kind of special organizational member of the Drupal Association. All of our Hosting Supporters get opportunities to connect with the community and provide education. They can also take the Drupal security test and promote that they passed.

How can I become a Hosting Supporter?

To learn more about the Hosting Supporter program, check out the details on the Hosting Supporter Program web page and contact Don Page, Account Manager, Technology & Hosting at the Drupal Association.

Categories: Drupal

OhTheHugeManatee: Bug: Multilingual Auto Label Will Break Your Entity Static Cache

1 July 2014 - 8:00am

This is an important one to note: If you use the popular Automatic Entity Label module on a multilingual site, it will break your paths because of an interaction with Drupal’s built in object cache. I looked at this briefly a few months ago and ran out of time, but my (badass) colleague bburg figured it out this week.

For now, the only solution is a slow one – we clear static entity caches when we generate multilingual titles. That’s not an awesome fix, but it’s hard to think of a better one without any of the D8 cache tagging functionality. Massive kudos to bburg for figuring this out!

And for those of you keeping score, this is a good example of how to file a bug report for a really complex issue in a really popular module… and follow up until you resolve it.

Categories: Drupal

OhTheHugeManatee: D8 Core Sprint in DC

1 July 2014 - 7:27am

A quick note to all the Drupalists in the DC general area – Forum One is trying to put together a D8 core sprint in their DC office space. They’re coordinating with the DC Meetup group to try and spread the word to as many community members as possible!

If you haven’t been to a code sprint before, it’s basically a coding party. Developers get together and help each other contribute better and faster by reviewing code on the spot, mentoring each other, and generally working in small ad-hoc groups. It’s a lot of fun, and gives a big boost to development of the next generation of Drupal.

Forum One will provide the locale in downtown DC complete with pizza, beer, and soda. We also have a few of our core mentors on hand to help you get started if this is your first time contributing to core. Because of the building security, if you want to attend you have to register first! I won’t be able to attend, but my colleagues John Brandenburg and Kalpana Goel will be there mentoring. Go sign up now!

Categories: Drupal

Digett: A module I've been wanting for a long time — insert a block in WYSIWYG

1 July 2014 - 6:35am

Sometimes what you are looking for is right in front of you. I have been searching for a module to allow me to insert a block into a WYSIWYG field. I tried looking for a Drupal implementation like Wordpress Shortcodes, perhaps the SimpleAd module would do what I'm wanting, maybe there is a Ckeditor plugin written for this? I came up short.

read more

Categories: Drupal

Drupal core announcements: No Drupal 6 or Drupal 7 core release on Wednesday, July 2

1 July 2014 - 6:17am

The monthly Drupal core bug fix release window is scheduled for this Wednesday. However, the last release was two months ago, and there haven't been enough changes to the development version since then to warrant a new release.

(Note that there will be a Drupal 8 alpha release on July 2, but Drupal 8 is still under development and therefore on a different schedule than the stable core releases.)

Upcoming release windows include:

  • Wednesday, July 16 (security release window)
  • Wednesday, August 6 (bug fix release window)

For more information on Drupal core release windows, see the documentation on release timing and security releases, and the discussion that led to this policy being implemented.

Categories: Drupal

Blink Reaction: Austin Wrap-up - Drupal 8: The Friendly Platform

1 July 2014 - 4:31am

For those of us living at the speed of Drupal each and every day, Austin seems light years away already. We’ve begun planning in earnest for Drupalcon Amsterdam and even Drupalcon Bogota and Drupalcon LA in 2015.

Categories: Drupal

Pixelite: Updating Drupal to use Google Analytics Universal tracking

30 June 2014 - 9:58pm
Facebook Like Google Plus One Linkedin Share Button

So Google Analytics has a new version of Google Analytics dubbed "Universal Analytics", which has a bunch of new features, that could be handy for your website. I would dive into exactly what they are here, as you can read about them on Google's own website.

In this post I will go through the steps to upgrade the Google Analytics 7.x-1.x module to the new 7.x-2.x version that supports Universal Analytics.

Update the Drupal module

If you read the Google Analytics module page you will spot that there are two different branches in use, in order to get the correct version you will need to get the 7.x-2.x version.

You can do this with Drush:

drush dl google_analytics-7.x-2.x drush updb Event tracking

If you have used custom event tracking in your website, a few changes are required.

Instead of

_gaq.push(['_trackEvent', 'category', 'action', 'opt_label', opt_value, opt_noninteraction]);

It is now

ga('send', 'event', 'category', 'action', 'opt_label', opt_value, {'nonInteraction': 1}); Handy grep command

If you want to find the offending lines of code, you can use grep

grep -nrI "_trackEvent" * Custom variables are now dimensions and metrics

If you were using the old style custom variables, these are now completely gone, now replaced with dimensions and metrics. You can read more about these on Google's website.

Instead of

_gaq.push(['_setCustomVar', 1, // Slot 'Customer Type', // Name 'Paid', // Value 1 // Scope (1 = User scope) ]);

It is now

ga('set', 'dimension1', 'Paid'); Drupal support of custom dimensions and metrics

The Drupal module has an active issue that allows you to configure this through the UI, unfortunately this is still only a patch at the moment, but is looking likely to be committed shortly (it maybe already if you are reading this now). For now I patched the Google Analytics module with Drush make

; Google Analytics projects[google_analytics][type] = module projects[google_analytics][subdir] = contrib projects[google_analytics][version] = 2.x ; Implement custom dimensions and custom metrics ; https://www.drupal.org/node/2136031 projects[google_analytics][patch][] = "http://www.drupal.org/files/issues/google_analytics-2136031-1-custom_dimensions.patch" DoubleClick data

If you were using the additional data that DoubleClick integration provided, this is now supported, this is just a tickbox on the admin settings page.

To enable it

variable_set('googleanalytics_trackdoubleclick', 1) Other new features in Universal Analytics UserID tracking

This effectively allows you to track the same user across multiple devices. This comes in handy if your users can login to your Drupal site, and they would likely login on their mobile phones, and tablets etc. You can read more on Google's page about User ID tracking

To enable it

variable_set('googleanalytics_trackuserid', 1) Enhanced Link Attribution feature

Allows Google Analytics to differentiate URLs based on what link the user clicked on, really handy if you have many links pointing at the same page. You can read more on Google's page about User ID tracking

To enable it

variable_set('googleanalytics_tracklinkid', 1) Finally

Run this little gem over your codebase to ensure there are no legacy Google Analytics code lying around.

grep -nrI "_gaq" *

Let me know if you have any tips or tricks in the comments for the new Google Analytics

Tags drupal drupalplanet Google Analytics Source Drupal module for Google Analytics Category Tutorial
Categories: Drupal


Google+
about seo