Writing standards-compliant code in Drupal 7 doesn't have to be hard! Using the power of a modern IDE, it can help to show you where you're going wrong, and ensure that all your code is standards-compliant. Here, we'll take a look at setting up JetBrains PhpStorm (our favourite IDE) to show you coding standards problems, but any IDE with CodeSniffer support will be able to do this, so it's likely Eclipse, NetBeans, and others will also help you out in the same way.
We just got back from DrupalCamp Oxford at the weekend, and there were a lot of good sessions. When you consider the ticket price was only £50 and included two 3-course lunches (both of which were way above and beyond the usual "Drupal event" food quality), it was a real bargain, but with so much information to take in, we thought we'd provide a quick summary of the key bits we took away from it.
Wonderbag is a unique product that needed a unique site. Drupal 7 put us in a great position to come up with something special, featuring huge amounts of evocative imagery, especially where food is concerned, along with a whole bunch of social content and interactivity.
The site integrates with Twitter and Facebook, and allows users to participate in discussions on the site itself. It contains a recipe index where users can submit their own recipes for moderation, and an online shop selling the Wonderbags themselves.
The National Skills Academy for Food and Drink needed an improved online presence, with more interactivity, stronger visuals, and more control over their own content. As they had a lot of content and a very long potential features list, we went on a few trips to York to sit with their team and get a feel for what they needed.
Sportsbeat needed a strong online presence and they wanted to accomplish this with a strong brand and bold visual style on their new site. We put together a site that feels modern to use, keeps the content straightforward, but engages the user and makes the user want to explore.
The inner pages include a team page where each team member's information can be viewed, a work page where each case study can be enlarged and flicked through, magazine style, and a grid of company logos to show off Sportsbeat's list of high-profile clients.
The Dyslexia-SpLD Trust came to us because their existing self-assessment framework was inflexible and costly to maintain. We had a track record of building custom web applications using Drupal 7, so we sat down with them to discuss what they needed.
Initially we looked at the quiz module for self-assessment, but due to their need to have a confidence level, as well as a particular response, for each statement, we decided to build something from scratch using Drupal's Entity system and its excellent views integration.
Drupal has no native CRM system. But it should have one. Drupal CRM (known by various other names including DropCRM and DCRM) is the attempt to rectify this situation, and at DrupalCon London this year, I propose that the very first code is to be created and used as a springboard to kickstart development work.
By default, when searching in OpenAtrium, the results shown are from the past 6 months. However, there might be a situation where you want to change this for your users. For example, suppose you wanted to show your users all results from any time? This is an option in the drop-down selector once you've made your search, but it's not default. Here's how to sort that out.
If you use Firefox or Chrome as your main browser, here's a quick way of searching the Drupal API right from the browser address bar, without having to visit multiple pages to get what you're looking for.
Update: a big thanks to an anonymous commenter for explaining the Chrome equivalent to the Firefox method!
Of course, this works for any site, not just Drupal's API, but this is one of the lesser-known features of these browsers.
The newest version of Wildfire was released today, free of charge, to all our existing customers, and brings huge improvements and lots of new stuff!
Here's the key differences: