Skip to main content
Joachim's blog

Main navigation

  • Home
  • About
  • Hire me

Breadcrumb

  1. Home

views

By joachim, Thu, 10/09/2026 - 12:56

Putting paths first: Views support for path alias entities

On a recent project, I was struck by how the content editors used spreadsheets to manage their content. This wasn't just as a planning tool in the early stages; they had spreadsheets which essentially mirrored the content in Drupal, and this is where they kept track of who was responsible for sign-off on a piece of content, what stage it was at, and so on.

Tags

  • contrib module
  • views
By joachim, Fri, 28/10/2011 - 08:52

Dynamically changing Views table joins

I've recently had cause to make Views make joins to tables in peculiar ways. Here's some notes on the peculiar things I did with the views_join class to accomplish that.

First of all I'll briefly recap how we define a table to Views. Each item in the $data array returned to hook_view_data() represents all the information about a table. Each key in the array is a field on that table (well, or pseudofield), except for the 'table' key which has the basic data about our table, like this:

Tags

  • drupal
  • views
  • drupal commerce
  • drupal crm
  • drupal planet
views

Frequent tags

  • Drupal Code Builder (9)
  • module builder (7)
  • git (7)
  • 6.x (5)
  • Drupal core (5)
  • Field API (4)
  • contrib module (4)
  • drupal commerce (4)
  • Rector (3)
  • Composer (3)
  • contributing code (3)
  • Drush (3)
  • Entity API (3)
  • tests (3)
  • development (3)
  • patching (3)
  • developer tools (2)
  • wtf (2)
  • modules (2)
  • roadmap (2)
  • maintaining projects (2)
  • drupal.org (2)
  • debugging (2)
  • code style (2)
  • deprecation (2)
  • issue queue (2)
  • 7.x (2)
  • views (2)
  • multisite (2)
Powered by Drupal