drupal archive

jonathan's picture

Drupal 7 Tutorial: Using Entityqueue

Now that Entityqueue has been released, I wanted to give a quick tutorial on how to use it. You can manage the queues from the /admin/structure/entityqueue page. Click "Add" to create a new queue. Once you're there you have several options. Enter the queue title and optionally change the machine name. I'll talk more about the handler in a future blog post, but for most cases the "Simple queue" handler will be what you want. Read More…

jonathan's picture

What I Learned Today: Drupal #attached Awesomeness

What is #attached Drupal 7 introduced render arrays, which was really an expansion of the existing Form API. One of the special elements of a render array is the #attached key. In a nutshell, it allows you to attach additional CSS or Javascript to your element. Here is a typical example that I stole straight from the Color module. Read More…

6 comments. Filed under learning, drupal.

joaquin's picture

Why More People Select WordPress than Drupal to Build Websites

First off, Drupal has had a great year and a great quarter. According to builtwith.com Drupal is second among all Content Management Systems at 13.75% of the top 10K websites and has added ~250K new website this quarter. That said, the number one CMS (WordPress) is at 42% of the market and according to the same source has added 5MM (yes, 5 million) websites this quarter. Here's the graph: Read More…

jonathan's picture

What I Learned Today: Drupal Behat Scenario Cleanup

I've been doing a lot more Behat testing recently. As my tests have gotten more complex, I've discovered that it was only a matter of "luck" that my earlier tests were properly cleaning up after themselves. What I mean, is that during my tests I fill out and submit a node form, checking that I successfully created it and that the appropriate users can see it. After each scenario you want to clean up any data that was created so you can run the test again and get the same result. The way the Drupal Behat extension works, it tracks nodes, users, roles and taxonomy terms you create using its methods, so that in its @AfterScenario function knows which nodes to delete. The problem is that when you submit the form using steps like the ones below, the extension does not track those nodes: Read More…

Pages