Skip to Content

Drupal

Out & About On The Third Rock: Drupal Camp London 2015 – revisiting Empathy

Planet Drupal - 1 March 2015 - 3:21pm
#DCLondon 2015 was nothing short of Epic, Drupal Camp London has in its own right become a mini-Con, with community members flying in from not only across Europe but the US, India, Australia and New Zealand it is hard to call it just a London camp! London is the centre of the multiverse! It was awesome […]
Categories: Drupal

Role Provisioner

New Drupal Modules - 1 March 2015 - 11:52am

This module provides a base for handling roles and permissions. The RoleProvisioner is expected to be extended through a another module. Your module will provide the configuration YAMLs and a class to ensure they're brought into scope.

Dependencies

  • XAutoload (PSR-4 autoloading)
  • Libraries (SpyC YAML parser)

You can make sure your site's roles and permissions are in proper configuration by running the ensurePermissions() method during an install, upgrade, or manual method call.

Categories: Drupal

Behat Drupal Extension Remote Client

New Drupal Modules - 1 March 2015 - 10:25am
Drupal Remote API Client

The remote API client is a Drupal helper module that, in conjuction with the RestWS module, allows the Drupal Remote API Driver to run Behat tests against Drupal sites. This client module is only needed on remote Drupal sites where testing will occur.

Categories: Drupal

iMindsX OAuth

New Drupal Modules - 1 March 2015 - 4:23am

A library defining a common set of API's for connecting to 3rd party applications or API's. The API's are grouped into several classes, all having a subset of functionality. For example the storage API will define all functionality for talking to e.g. Dropbox API and Google Drive API. Because this gives an abstraction over all different 3rd party API's, you can quickly switch between the different providers without learning a new API.

The different classes:

  • Storage
  • Login (WIP)
  • Calendar (WIP)
  • SocialFeed (WIP)
  • Tasks (WIP)
Categories: Drupal

DrupalOnWindows: Deploying Drupal Like a Pro

Planet Drupal - 28 February 2015 - 10:00pm
Language English Introducing the Deploying Drupal Like a Pro Series

Building a Drupal site is difficult, developing a Drupal Based application is more difficult but correctly managing, deploying and keeping alive an application who's customer is paying you a 4, 5 or even 6 figure number per month is even more difficult. And if you want to do that one last thing in a cost effective way you must do it yourself.

More articles... Pages
Categories: Drupal

Chen Hui Jing: Drupal 101: Basic site optimisations

Planet Drupal - 28 February 2015 - 4:00pm

It has been statistically proven that nobody likes a slow website. We have all moved on from the days when you’d patiently wait for a page to load over that lovely dial-up modem. Nowadays, people want their pretty content, and they want it loaded instantaneously (or at most by 2 blinks).

One very basic concept I learnt about website performance is: minimise requests to your server. This makes perfect sense to me. Say I had a shopping list with 12 items. If I went to the general store and asked the shopkeeper for each item separately, he’d have to make 12 trips and most likely end up being very pissed at me. It’s much more efficient and faster to...

Categories: Drupal

View Modes Display

New Drupal Modules - 28 February 2015 - 2:36am

View Modes Display is a helper module to preview view modes for your entities.

When working on a site with many content types and view modes, it becomes tedious to find out where to view the rendered entity in a given view mode. This module aims to solve this by providing an additional tab "Preview Display" on the node itself.

On the "Preview Display" page, all view modes with custom settings will be rendered in the enabled theme. A contextual link is also added for nodes to make it easy to link to the "Preview Display" from anywhere the node is shown.

Categories: Drupal

Panels field collection form

New Drupal Modules - 28 February 2015 - 2:25am
Categories: Drupal

Views custom cache

New Drupal Modules - 28 February 2015 - 1:34am

This module provides two new simple caches for views which takes view's arguments into account:

  • Custom cache: view's all arguments: All view's arguments, including contextual and exposed filters, will be taken into account.
  • Custom cache: view's first argument: Only first view argument, even if it is a contextual or exposed filter, will be taken into account.

Also, this module let's you:

Categories: Drupal

Twitter Backlog

New Drupal Modules - 27 February 2015 - 11:02pm

Import a user's backlog of Twitter status messages, prior to the 20 messages imported by the Twitter module by default.

Compatibility

The 7.x-1.x branch of Twitter Backlog is intended to work with the 7.x-5.x branch of the Twitter module. The 7.x-2.x branch of the Twitter Backlog module is intended to work with the 7.x-6.x branch of the Twitter module.

Categories: Drupal

Code Drop: GovCMS: What Drupal developers can look forward to in 2015

Planet Drupal - 27 February 2015 - 8:49pm

At Code Drop we are looking forward to leveraging all of the incredible effort which has gone into the govCMS ecosystem and all which as gone into making Drupal the choice for Government organisations. Developers who work with or are hoping to work with the platform have a lot of stuff to look forward to in 2015.

Planned Features

While govCMS is the name for the overarching project to bring Drupal into government using turnkey solutions, it is powered by the Drupal distribution aGov. Part of the recent work that has gone into the platform is a planned set of features for a new version of aGov (7.x-3.x). These planned features have been posted on Drupal.org and do represent a really positive evolution in the profile, a quick summary of which can be found below.

Categories: Drupal

Drupal Association News: Drupal Association Board Meeting: 18 February, 2015

Planet Drupal - 27 February 2015 - 4:17pm

February may be the shortest month of the year, but it's certainly been one of the busiest for the Drupal Association, so I apologize for taking more than a week to get this summary post up! What's been keeping us so busy? Our first ever DrupalCon in Latin America and the Drupal Association At-Large Board elections. Both of these events have been huge positive milestones for the Association, and have involved dozens of volunteers from around the globe. In the middle of all that, we managed to sneak in a board meeting on 18 February. If you missed it, you can listen to the recording, read the notes, and peruse the materials. Or feel free to skim this summary!

Operational Update
  • We have a big initiative internally at the Association to reevaluate the metrics we use to illustrate the success of our work. We are also looking at ways to better display these metrics so that you can see more context. So over the next few months, you'll see the metrics in the dashboared shift and change. Just a bit of a heads up, and let us know if you have any feedback along the way.
  • The February board packet covered our January metrics, and things look pretty good one month into the year. We are especially pleased that the Engineering team has been able to bring site performance to our goal levels. 
  • The Engineering Team also took several big steps towards key areas of the Drupal.org roadmap in January. Step 1 of the roadmap is better Account Creation and Login, and several key issues were closed out.
  • The DrupalCon Team and Engineering worked together to launch events.drupal.org in January as well. This shift means that Con sites are all on the same platform now. We no longer have to launch a site from scratch for each Con, which helps make Cons much easier to manage. Most importantly, we've been able to introduce key new features in reegistration for our community. Excited? Go ahead and register now! You can check out the new features yourself!
  • We are really lucky to work with the tireless Drupal 8 Branch Maintainers on the Drupal 8 Accelerate program. The program is picking up steam with a number of grants made and completed already. The next big grant will fund a Drupal CI (testbot) srpint in Portland at the end of March.
Content Strategy Update

Last year, the Content Working Group began a process of building a larger strategy for a reimagination of Drupal.org. Our first work was focused on User Research, and completed that work in the fall, publishing the developed personas. The next phase has focused on developing a content strategy. With over 1.2 MILLION pieces of content on Drupal.org, a strategy for dealing with that content is going to be pretty darn important. You can check out the presentation, as well as the post that's currently one of those pieces of content on Drupal.org.

Drupal.org Advertising Strategy

Finding new revenue streams is vitally important to the Association. For the entire history of the Drupal Association, DrupalCons have been the primary way we have funded other community work. We want to do more to serve our mission: uniting a global open source community to build and promote Drupal. If we're going to do that, we need new revenue streams. The bonus? If we can find new funding sources, it takes the pressure off of DrupalCons to perform financially, which means we can make choices for those events that might not fuel the financial bottom line, but make the events better for the community. 

So how are we doing it? New programs like Drupal Jobs have launched. We are also introducing advertising on Drupal.org and to Drupal.org visitors. We working to develop advertising products that are meaningful for advertisers (enough traffic, good clicks) and also deliver value to our community. We've drawn a few clear lines - we won't advertise on issue queues, for example, and will focus on users who are not logged into the site. We'll also be developing a variety of programs so that small shops can participate alongside bigger firms. 

For all the details, check out the presentation.

The End

Thanks so much for checking in on this board meeting and, as always, please let me know if you have any questions or thoughts.

Categories: Drupal

Square Crop Effect

New Drupal Modules - 27 February 2015 - 2:42pm

Image Effect for Image Styles.

This module fills a need for square crop effect that doesn't require any height or width to be specified. It examines the dimensions and produces the larges square possible (cropped on a top-center anchoring).

It also works great as a fallback filter to ensure squares for styles that also rely on modules like manualcrop or smartcrop.

Categories: Drupal

Media Browser Edit Link

New Drupal Modules - 27 February 2015 - 2:15pm
Summary

This module fills in a missing piece of functionality. In Media Browser (media_wysiwyg) you cannot easily edit the fields of a file entity from the wysiwyg once the file is added.

This adds an "Edit" link above the preview image when you click the Media button for an existing embedded asset. Clicking the link opens the full file edit screen in another window.

This is designed to be compatible with Media 2.x branch. It plays nice with manualcrop, and adds "crop" to the link if present.

Categories: Drupal

Victor Kane: DrupalCon Latin America 2015 Bogotá will live on as one of the classics

Planet Drupal - 27 February 2015 - 2:13pm

Grass roots enthusiasm, D8 teen spirit, much needed long absent leadership and community courage facing up to critical issues should overflow into DrupalCon Los Angeles in May

An incredible DrupalCon, DrupalCon Latin America, ended a couple weeks ago and I haven't seen any cool DrupalCon wrap-ups capable of really sharing with the rest of the Drupal community what an extremely well-organized and just plain special community experience it was. I am sure I'm not the only one who felt completely invigorated by it all. Let's take a look at why, and see how we can make it contagious.

Great Venue
Attendees from all over
Quality of presentations
Drupal 8 properly positioned
Now we know when to start switching to D8
Much Needed Drupal leadership
Huge participation in the Sprints and beyond

read more

Categories: Drupal

X-Team: Install Drush 7 for Drupal 8 without throwing away Drush 6

Planet Drupal - 27 February 2015 - 1:43pm

If you are playing around with Drupal 8, you may want to install version 7 of Drush on your computer. However, Drush 7 is currently only available as the master branch at github, and you may not like to throw out your existing Drush 6 in favor of the Drush development version, which is not...

The post Install Drush 7 for Drupal 8 without throwing away Drush 6 appeared first on X-Team.

Categories: Drupal

Wuinfo: Design a Drupal Website with a Million Nodes in Mind

Planet Drupal - 27 February 2015 - 1:10pm

Begin to design a Drupal website with a million nodes in mind. We build a Drupal website. It runs well at beginning. Until one day, the system has hundreds of thousands of node. We found the site became slow. We need wait many seconds before we can open a new page. Not only it is slow, but also sometimes we got errors like memory exhausted.

Most time the problem was existed at the beginning stage of a system. When designing a site, there are something we as a developer have to take care. We need bear in mind the site will grow and more and more nodes will come. Everytimes creating a function, we need to make sure the function will work fine when there are hundreds of thousands of nodes in the system. Otherwise, those functions may time out or finish all the memory by those ever increasing nodes in the system.

PHP have a maximum memory limit for each user. Sometimes it is 128 MB. Sometimes it is 256MB. The number is limited, and it is not infinite large for sure. There is no limit on how many nodes can exist on our website. As our system getting larger and larger with more nodes created, we will face the memory limitation sooner or later if we did not take it into consideration at the beginning.

Here is a quick sample. Drupal have a function node_load_multiple(). This function can load all nodes in the database to memory. Here are some codes from one of our contributed module.

foreach (node_load_multiple(FALSE) as $node) {
// Modify node objects to be consistent with Revisioning being
// uninstalled, before updating the {taxonomy_index} table accordingly.
unset($node->revision_moderation);
revisioning_update_taxonomy_index($node, FALSE);
}

This code is in an implementation of hook_uninstall. It will run into a problem if there are over 10,000 nodes in the system. As a result, we can not uninstall this module. Here is the error message:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 36 bytes) in ...

It used up all 256MB memory before it can load all the nodes. As the result, the module can never be uninstalled from the site.

It is an extreme case. As we troubleshooting an existing site, we may notice similar case here and there. I also notice that we can do something on the field_sql_storage module to make Drupal running faster and keep SQL database smaller.

Categories: Drupal

Drupalize.Me: Podcast No. 58: Drupal Console

Planet Drupal - 27 February 2015 - 6:05am

This week on the podcast, Amber Matz chatted with Jesus Manuel Olivas about the Drupal Console project. What is Drupal Console? The Drupal Console is, at this time, a suite of tools that you run on a command line interface (CLI) to generate boilerplate code and interact with a Drupal 8 installation.

Categories: Drupal
Syndicate content


Google+
about seo