Skip to main content
ComputerMinds

Articles

Drupal views

Everybody wins with relevant alternatives in search results

Drupal's Views module is wonderful for listing content, but what should you show when you have nothing to list? Everybody loses if a journey ends there: your visitor has to start again, and you've missed an opportunity to help them. The likes of Amazon and eBay show alternative…Read article →

Removing invalid query string parameters passed to a view

As a Drupal site administrator, you may notice in the website logs that there might be a large number of repeated log messages along the lines of "An illegal choice has been detected. Please contact the site administrator." We recently had this problem on a Drupal site that was…Read article →

Entity Extra Field module: display blocks & views amongst fields

I'm a fan of configuring things for display through Drupal's admin UI. It gives site builders confidence and power. What if you want to place blocks or views listings in amongst fields on pages of content? For example, to display:Read article →

Got a config schema error on saving a view?

We ran into an obscure error recently, when saving a view that used a custom views plugin. It was supposed to be a very simple extension to core's bundle (content type) filter:Read article →

Render a Drupal 9 View programmatically (Render arrays FTW!)

Extra quick tip for developers working with Drupal 8 or 9: Adding views to your page content is now incredibly straightforward:Read article →

Drupal 8 Views: How to set as admin path

In Drupal 8 admin paths are now defined as part of route definitions so are no longer defined in hook_admin_paths(). In many cases, uniting routing with admin path definition makes things easier - simply add _admin_route: TRUE in a .routing.yml file, but not when it comes to…Read article →

Drupal 8 Views: How to formulate the route name

This article will explain how to formulate the route name for a view because there are very few sources for the information online.Read article →

Language lessons: How can I fix my autocomplete box?

Languages make everything so complicated! I just discovered the autocomplete bit on my reference fields wasn't working - until I tried searching by another language, and then the results gave me a surprise:Read article →

Where is my content coming from?

I was asked at Drupalcamp London how to identify where parts of a panel come from. Whether you need to change something on a site you inherited, are looking to trace your steps back on something you created long ago, or need to understand how to fix a colleague's mistake, it…Read article →

Views data exports

Views is the king in Drupal land when it comes to making lists of your data, rightly so, it does a wonderful job of making it easy to choose the data you want to list. It also allows you to render your list in various forms, lists, tables. RSS feeds or even jump menus. So if…Read article →

Facebook like views integration

Facebook is rapidly taking over the planet, and Drupal is arguably trying to do the same. Facebook added the concept of 'liking' a webpage to their array of social tools a while ago. Drupal modules quickly added the ability to 'like' content on your site.Read article →

Views caching

A little while ago I blogged about views content cache as a way to increase performance of your Drupal site. Today I released version 2.2 of the module, that adds lots of lovely features.Read article →

Nodequeues for developers

Nodequeues are a really useful way of building ordered lists of content and they integrate amazingly with views and have quite a nice interface for adding/removing nodes. Out of the box you can create queues and choose node types that can be added to the queues, and roles that…Read article →

Using Drush export content type, and views

We're not sure what to do with these: we've written two simple Drush scripts for exporting content types and views. Saving us from having to navigate a few pages and precious seconds.Read article →

DrupalCon DC - Business Analytics in Drupal with Views

One of the interesting sessions that I attended at DrupalCon DC was one entitled: Business Analytics in Drupal with Views. In it, the presenters showcased two of their modules. One was a charts display plugin for views, and one was a 'group by' views field.Read article →

Views 2: Making a drupal views block title link back to the view

We wrote an article about linking a view's block title to the companion page view, in Drupal 5. Someone asked for a Drupal 6 version, which can be quite easily done with a preprocess function, but it's not very flexible.Read article →

Drupal node operations

We love the views bulk operations module here at ComputerMinds, and frequently use it to create some lovely administrative interfaces.Read article →

Some nice quick views theming tricks in Drupal 5

Thought I would post this little function on here, we tend to use it a lot and it gives some nice little extras for you to play with when you come to template your nodes.Read article →

Making a drupal views block title link back to the view

One for the small but handy category this. The standard "more" link the views module adds to it's blocks has no place on a modern accessible website, you really need a more verbose link in there. One solution has always been to add a bit of footer or header text into the block,…Read article →

Organising your views in Views 1.x

If you're still stuck in the Views dark ages, and 1.6 is as good as it gets for you here's a quick tip to make things a little easier:Read article →

Displaying exposed filter form for views in Drupal 6 (views 2)

One of the joys of working with Drupal 6, and views 2, is that you have to relearn a lot of things you used to take for granted ... one trick we use in most projects is embedding views filters in blocks, nodes or custom code. There are plenty of scenarios this is useful, the…Read article →

Multilingual views in Drupal when using i18n module

Building multilingual sites in Drupal using the i18n module always throws up a few fun problems to be solved. One of the most awkward being views.Read article →

Drupal - changing the calander view to display single letter for day of the week

By default the Drupal event module will provide a nice calander block, listing the days of the week accross the top using 3 letter abbreviations (mon, tue etc).Read article →