Planet Drupal

Subscribe to flux Planet Drupal - aggregated feeds in category Planet Drupal
Mis à jour : il y a 10 min 49 sec

Modules Unraveled: 100 Starting a New User Group with Micah Godbolt - Modules Unraveled Podcast

mer, 19/03/2014 - 09:23
Published: Wed, 03/19/14Download this episodePDXSass
  • What is PDXSass?
  • Why did you decide to start the meetup?
  • What does a typical meetup look like?
  • How did you decide on a location? (And time?)
  • Do you have sponsors?
    • How did you get them?
  • If someone wanted to start a meetup, what advice would you give them?
    • What’s the first thing they should do?
  • Where do you get speakers?
  • I really enjoy SassBites, so I wanted to plug that here. For anyone that doesn’t know, tell us what SassBites is.
  • What are some of the topics that you’ve covered?
  • How much work is involved in producing a SassBite?
  • If someone listening wanted to start doing short screencasts, what would you tell them?
NodeSquirrel Ad

Have you heard of/used NodeSquirrel?
Use "StartToGrow" it's a 12-month free upgrade from the Start plan to the Grow plan. So, using it means that the Grow plan will cost $5/month for the first year instead of $10. (10 GB storage on up to 5 sites)

Episode Links: Micah on drupal.orgMicah on TwitterMicah on G+PDX Sass on TwitterPDX Sass on Meetup.comPDX Sass on G+Sass Bites on YoutubeSass Bites on TwitterTags: 
Catégories: Elsewhere

Ben's SEO Blog: About Our Partnership with Net-Results

mar, 18/03/2014 - 17:11

Today we announced that Automatr, our marketing automation platform for Drupal, was built on the Net-Results platform. Although that has not exactly been a secret, it’s not something we had publicly announced prior to today so I wanted to take a few minutes to tell our partners and customers about this relationship and what it means to you and to Volacci going forward.

The partnership we have with Net-Results is about playing to our strengths. Net-Results provides a technology platform that is one of the best in the world in the marketing automation space. By using that platform, it gives us a really nice head start on building great marketing tools for Drupal; which is Volacci’s strength. We’ve been in the Drupal marketing space for many years and our mission is to build the best marketing tools that exist for Drupal. This partnership gives us an excellent platform to build them on.

When I first met Michael Ward and Matt Filios - the founder and President of Net-Results, I very quickly sensed that we had a lot in common. Volacci and Net-Results are very similar types of companies: we’re similar in size, our leadership thinks about the market in much of the same way, we are very entrepreneurial, and we’re willing to take risks in order to take on the market. We are very well aligned in our approach and that was important to me.

Not to mention the technology is great! Putting our technologies together makes a lot of sense to me. I could see right away that there would be some great synergies. For example, many of the other marketing automation platforms that we investigated require you to do things like embed their form in your Drupal site. Drupal already has a great form system in the Webform module; we don’t need another form system. We need a technology that can be integrated with Drupal’s webforms and that’s what Net-Results does with their web form mapping approach. Drupal owners can keep using the forms that you already have and map them into Automatr.

Another benefit is our open API. Everything that we’ve built for Drupal in Automatr has been done using an open API and that’s been really powerful. It’s allowed us to do a lot of very interesting things like personalization. That’s a huge new area that we’re exploring and it’s all built on data that we’re pulling out of the Net-Results system. We’re going to announce some really interesting tools for developers this year that will allow them to do things like change page content based on who is viewing the page. We wouldn’t have been able to do that with any other partner.

Our initial goal here for 2014 is to get a couple dozen Drupal partners to become users and builders of solutions using Automatr. If we can accomplish that then I believe we’ll be well on our way to a successful product launch. We’ll measure our success by how well the Drupal market responds to what we are offering. That is the bottom line. If we can create great tools for Drupal marketing then we’ll have done our job.

I’d love to see Automatr and Drupal become the de facto standard for building fantastic marketing platforms on mobile and the web. That’s what we are working toward here at Volacci and this partnership with Net-Results is a big part of making that happen.

Volacci CEO Ben Finklea talks about our new partnership, Automatr, and Drupal.automatr news, marketing automation, Planet Drupal
Catégories: Elsewhere

DrupalCon Austin News: Why You Should Send Your Employees to DrupalCon

mar, 18/03/2014 - 16:59

Deciding whether or not to send your company’s employees to DrupalCon can feel like a huge undertaking. You may be wondering, what's the ROI? If sessions are available on YouTube after the event, what’s the value of being there in person? Is it really worth it?

Catégories: Elsewhere

Commerce Guys: Commerce Bundle: Taking the “Un!” out of bundles

mar, 18/03/2014 - 16:29
First, let’s clarify our meaning of the term “bundle”. Mothers consider their newborns “little bundles of joy”. Drupal developers feel giddy when they create a new “bundle of fields on an entity type”. Today, however, we’ll be looking at a far more sinister definition; the one used inside the marketing dept. i.e. product bundles.   I imagine the idea of product bundles originated somewhere in Ancient Egypt during the reign of the Pharaohs. It likely occurred when an engineer in the Mummification department who was struggling to come up with new product ideas decided to swing by the Marketing department for some friendly banter.   Marketing Manager: “Greetings Amun. How’s it going?”   Engineer: “Not so well. I’ve got His Royal Pain-in-the-Butt Tutankhamun breathing down my neck to increase our product line. I’ve told him a thousand times that making mummies only requires three things 1. gauze wrap, 2. embalming fluid, and 3. a nasal brain extractor. What am I to do?!”   Marketing Manager: “Now I’m just spitballing here, but since you’re so good at wrapping, heh heh, why not just wrap all three of those products up, and sell them together as a new product? You know, a DIY mummy kit.”   Engineer: (Sigh)   and the world was given product bundles.     Now we’re happy to announce that Drupal Commerce sites can offer their customers product bundles in the form of the Commerce Bundle module. Some notable features of the module are:   Product attribute support Let’s say that one of your products are all the boondoggle keychains you made at scout camp. They come in a variety of sizes and colors (i.e. attributes), and now you want to bundle them with your Three Wolf Moon t-shirts that have attributes as well. Commerce Bundle will generate select widgets for each attribute per product in your bundle, so that a customer can choose the exact bundle configuration they desire.   Bundle pricing at the product level This gives you complete control over the price of each item in your bundle. For example, you might have created a bundle containing your illustrations of mythical creatures. You’d like to sell the colored illustrations for $5 more than the black and white. In this case, just set the bundle item price for colored to the desired amount, and you’re all set. This also means that the total bundle price is determined by the sum of the item prices.   Multi-quantity product support Maybe your keychain/t-shirt bundle isn’t selling so well, and you’d like to sweeten the deal by adding a second keychain for free! This can be done by setting Unit Quantity=2 for your keychain group. The unit quantity tells commerce_bundle how many of a particular product is required when bundle quantity equals one.   Bundles function at the line item level Your bundles really only act as a bundle on the Add to Cart form and when a customer is managing their cart (i.e. removing bundles, changing quantity). Once checkout begins, there is no concept of a bundle, just a group of line items in a cart. This means that the module will play nice with other modules in the Drupal Commerce ecosystem e.g. Commerce Reports.     This project was built by Commerce Guys, and sponsored by Idea Den.


Catégories: Elsewhere

Open Source Training: CKEditor Buttons Missing in Drupal

mar, 18/03/2014 - 15:26

A few times over the last couple of weeks, OSTraining members have run into trouble with CKEditor for Drupal.

They find that some buttons are missing from CKEditor when they try to create content.

These buttons include the Styles, Format and Size icons.

Catégories: Elsewhere

Drupal Easy: DrupalEasy Podcast 125: History of the (Drupal) World, Part 1

mar, 18/03/2014 - 14:16
Download Podcast 125

Moshe Weitzman (moshe weitzman), one of the earliest Drupal contributors, Drush and Devel maintainer, and the Director, Research and Development for Acquia joins Mike Anello for a look back down Drupal’s memory lane. Moshe shares stories of the first publically available version of Drupal, the first DrupalCon, and how came about. As always, we also cover some Drupal-y news, share our picks of the week, and subject our guest to five questions!

read more

Catégories: Elsewhere Replacing Menu Item Visibility module with custom "in code" solution

mar, 18/03/2014 - 12:03

I'm a big fan of fighting with Drupal's inefficiencies and bottlenecks. Most of these come from contrib modules. Everytime we install a contrib module we should be ready for surprises which come on board with the module.

Drupal Tags  drupal 7, drupal snippets, drupal planet Read on about Replacing Menu Item Visibility module with custom "in code" solution
Catégories: Elsewhere

Open Source Training: Videos on Using Linkit with CKEditor in Drupal

mar, 18/03/2014 - 09:15

CKEditor will be the default editor in Drupal 8 and is currently the most popular editor in Drupal 7.

However, in some respects, CKEditor isn't very tightly integrated into Drupal. For example, it's not able to access Drupal images or link to Drupal content.

The Linkit module is the best way to improve linking.

Linkit provides an auto-complete field for linking to nodes, users, files, terms, and fields. Linkit makes creating links significantly more user-friendly.

Catégories: Elsewhere

Michael J. Ross: Drupal Flag Module Checkbox Solution

mar, 18/03/2014 - 05:09


Web users are accustomed to clicking on checkboxes, buttons, and icons to flag and unflag items of all sorts, such as favorite blog posts. The Flag module is a popular project for implementing flag capabilities on Drupal websites. Thus, it is a shame that it does not support checkboxes or any other intuitive interface elements on entity displays, but instead uses only links (as of this writing).

Fortunately, there is at least one workaround, which would be implemented on the flag admin page for the given entity type, such as nodes (admin/structure/flags/manage/node_flag): You can use characters that look like unchecked and checked checkboxes (☐ and ☑), instead of or as part of the "Flag link text" and "Unflag link text" values, respectively. These special characters are the Unicode characters U+2610 ("ballot box") and U+2611 ("ballot box with check"), and can be displayed on web pages using the HTML decimal entities "☐" (hex "☐") and "&amp#9745;" (hex "☑").

Beware that, if these characters are used alone, with no accompanying explanatory text and no helpful title attribute in each anchor's open tag, then this approach produces HTML that may not be accessible by assistive browsing technologies. But for now, it may have to do.

Copyright © 2014 Michael J. Ross. All rights reserved.

Catégories: Elsewhere

Drupal Association News: Drupal Association Board Meeting: March 13, 2014

mar, 18/03/2014 - 00:21

Another month, another Drupal Association Board Board Meeting! Huge thanks to the community members who showed up in the meeting and on IRC to participate. We are very lucky to have so many active and passionate community members who help shape the direction of the Association. This month we tackled several meaty topics, made a big announcement, and more.

Catégories: Elsewhere

PreviousNext: Drupal 8 Now: PSR-0 code in Drupal 7

lun, 17/03/2014 - 23:00

Drupal 8 embraces modern PHP with all the trimmings, shedding the baggage of supporting earlier PHP versions and embracing the new object-oriented features.

One such feature is namespaced objects and the PSR-0 standard for autoloader compatability.

But if you know your project will run on a recent version of PHP, there's no reason you can't write your custom modules using PSR-0 now, in Drupal 7

Catégories: Elsewhere

PreviousNext: Drupal 8 Now: PSR-0 code in Drupal 7

lun, 17/03/2014 - 23:00

Drupal 8 embraces modern PHP with all the trimmings, shedding the baggage of supporting earlier PHP versions and embracing the new object-oriented features.

One such feature is namespaced objects and the PSR-0 standard for autoloader compatability.

But if you know your project will run on a recent version of PHP, there's no reason you can't write your custom modules using PSR-0 now, in Drupal 7

Catégories: Elsewhere

PreviousNext: Drupal 8 Now: PSR-0 code in Drupal 7

lun, 17/03/2014 - 23:00

Drupal 8 embraces modern PHP with all the trimmings, shedding the baggage of supporting earlier PHP versions and embracing the new object-oriented features.

One such feature is namespaced objects and the PSR-0 standard for autoloader compatability.

But if you know your project will run on a recent version of PHP, there's no reason you can't write your custom modules using PSR-0 now, in Drupal 7

Catégories: Elsewhere

Daniel Pocock: Hangouts Outage? Try WebRTC and JitMeet

lun, 17/03/2014 - 22:35

With Hangouts being offline right now, it might be a good opportunity to catch up on some of the exciting, free and open alternatives:

Catégories: Elsewhere

Drupal governance announcements: Draft charter for Security Working Group posted

lun, 17/03/2014 - 20:29

Michael Hess, Greg Knaddison, Mori Sugimoto, Ben Jeavons, Matt Chapman, Angie Byron and myself have been working on the charter for the Security Working Group (DocWG). The mission of the SecWG is to ensure that Drupal core and Drupal's contributed project ecosystem provide world-class security, and to provide security best practices for site builders and module developers. The work is part of our work on evolving and streamlining the Drupal project's governance.

We just shared our proposed SecWG charter, which has also been run by the existing security team, and now we are looking for feedback and input from the community before formalizing it. We hope to finalize this within the next month, so that leaves some time for community feedback.

Catégories: Elsewhere

Marzee Labs: Coding as a team: content fixtures

lun, 17/03/2014 - 20:00

Any frontend guy will tell you that content is very important to be able to do their thing. You cannot properly structure content display and style it without having material to play with. And there is nothing more tedious than creating fake content on-the-fly to do the job. It will end up being destroyed, and you'd have to do it again because a new field was created. How about fixturising your content and keep on iterating it?

When time comes to start frontend implementation, you will take over some structure built by the backend guy. And if you usually work on large sites, then you certainly have to deal with a bigger team. Beyond the production of CSS and JS, you will need to have some dummy content to understand how it looks on the display. But, wouldn’t it be nice if everyone in the team would be looking at the same site content? Imagine how easier would it be to reference a specific URL or part of a page when debugging. It would also allow the initial site review by the client or PM to happen much sooner, before the actual content is ready. How easier would it now be to test your app, either manually or through an automated setup! Are you nodding yet? Then let me show you how we do it in Marzee Labs as part of our Drupal development workflow.

The Migrate module

You are probably aware of the existence of the migrate module that is now part of Drupal 8 core. From the project page we can read “The migrate module provides a flexible framework for migrating content into Drupal from other sources”.

Essentially, the migrate module is a swiss army knife that allows you to insert content into Drupal. By default it can import nodes, users, files, terms, and comments; other modules can easily extend it further. Check the official module documentation for further insight.

A practical tutorial: Sample content ready on install

We’ll use a sample migrate module of our own: the MZ Migrate Example module (this module is part of our MZ installation profile).

This sample module feature defines two content types: Trappist (an exclusive Belgian Beer) and Brewery. Feel free to download and check the anatomy of this module. Don’t worry if it seems complex, we will dissect it and unveil all its secrets. You can install it directly on a drupal test site but we will also talk about a more advanced way™ later on, so keep reading!

The feature module is responsible for migrating it’s own sample content. It’s a nice way of organizing your code, keeping both the content definition and the sample content together in a single feature.

We will be focusing on migrating sample content, so open up trappists.csv under the import folder of the same module. It contains the following lines:

id,title,brewery,image,type 1,"Westvleteren XII",1,westvleteren.jpg,Other 2,"Chimay",2,chimay.jpg,Dubbel|Tripel

Breaking it down you have:

  • An ID of the content
  • The title
  • The ID of the related brewery, this is not the final node ID, but an internal ID we use to reference content via these CSV files
  • The image file name, under import/files
  • The taxonomy term, with support for multivalue, in this case separated by the | character.

This is a simple CSV file. In complex content types with several fields and multiple references it can get more confusing so you can use a spreadsheet tool for editing.

So, now that we have some sample content, we need to define how to import that content. In the file you’ll see we have declared a migration class for each content type: MZBrewery and MZTrappist. defines the actual migration code. You’ll see that we prepare the migration of several field types: text (either title or body), references to other migrate content (e.g. the Brewery the trappist beer is associated to via an entityreference field), some images, taxonomy terms and the author (with default uid = 1):

For example, here is a simple field mapping:

// Title $this->addFieldMapping('title', 'title');

and a more complex one:

// Image $this->addFieldMapping('field_trappist_image', 'image'); $this->addFieldMapping('field_trappist_image:file_replace') ->defaultValue(FILE_EXISTS_REPLACE); $this->addFieldMapping('field_trappist_image:source_dir') ->defaultValue(drupal_get_path('module', 'mz_migrate_example') . '/import/files');

That’s it, you are now all set to import that content.

Import that content!

You can import the sample content through the migrate UI in the backend, at /admin/content/migrate or using drush.

If you are using the stand-alone example module you can use the following drush commands to test it:

drush en mz_migrate_example drush cc all drush mi MZBrewery,MZTrappist

You can find more information on drush migrate commands and a discussion on why you should use drush instead of the backend UI to use migrate here.

But that’s just beginning

Doing it all automatic now… aka the More Advanced Way™

As I mentioned above, there is a more advanced way™, and that is using Phing. What is Phing you ask? For the more distracted of you, we wrote a blog post on how to automate development using phing.

The integration is pretty simple: whenever the database is rebuilt there is some sample content ready to be used. The best part of this is when a fellow team mate goes in to review your feature, jumps into the branch you are working on and only has to do a phing build. Your team mate will then have the sample content ready to test your feature, because while building the feature you’ve been updating that magical CSV file for the migrate procedure, right? Of course you have!

On a more personal note, as a frontend guy, but also as a site builder, sometimes I had to add fields to features and I was a bit lost in the beginning looking at the files of the features. That’s when I remembered that Drupal has great documentation. In this particular instance I needed to add sample content to a multivalue link field, I checked and saw in the comments how to import links automatically. Easy, isn’t it?

How could I live without this?

Your frontend folks will love it and they will also start doing it themselves. Besides having the same code base, better yet is to always have the same sample content to play with as you build the website. And all of it done automatically, with phing to the rescue! Speed up the process, and manage short deadlines better by using content fixtures from day 1. Working as a team is great, and with this workflow it just got easier!

Have you got similar experiences, or totally different approaches on how you manage your test content? Drop us a line in the comments below, let’s start a conversation.

Featured image credit: Quantum_Kitten / Flickr

Catégories: Elsewhere

Stanford Web Services Blog: Creating a Static Copy of a Website

lun, 17/03/2014 - 18:09

The modern Web is a dynamic place. However, sometimes it's necessary (or desirable) to remove the dynamic functionality of a website, while preserving its static content.

Inspired in part by Karen Stevenson's excellent blog post, "Sending a Drupal Site into Retirement," I wanted to outline a few other techniques for accomplishing this.

Reasons you may want to create a static copy of a site:

Catégories: Elsewhere

Appnovation Technologies: 5 of the Best Designed Magazine Websites

lun, 17/03/2014 - 17:53
In the age of fast-paced news and social media there are still some who look to their favourite magazines to stay up to date with their news and events. Luckily, some of the most well-known magazine brands have made it easy to look for the same information, but through the web. The following are some of the best designed magazine websites on the internet. var switchTo5x = false;stLight.options({"publisher":"dr-75626d0b-d9b4-2fdb-6d29-1a20f61d683"});
Catégories: Elsewhere

InternetDevels: SEO-modules for Drupal 7 to make your site better

lun, 17/03/2014 - 14:47

If you want your Drupal-site to fit all SEO demands there are hundreds of out-of-box modules on Previously we have described the most important SEO modules. This time we will provide you with the list of modules one can hardly call ‘must have’. However your website will gain additional benefits if using them in a right way.

So let’s review these modules.

Read more
Catégories: Elsewhere

Drupal Association News: Debuting a Drupal Camp, Uniting a Community

lun, 17/03/2014 - 14:43

Fresh off the train from Fort Wayne, Indiana, Andrea Soper hit Chicago with eyes full of big city excitement. The opportunities seemed as endless as Lake Michigan.

Catégories: Elsewhere