Archive for the ‘ Drupal ’ Category

Turn It Off to Enable It

Problem:

A collection of nodes (let’s call them “stories”) has an associated vocabulary (taxonomy) distinguishing the stories’ topics. A View displays those stories by filtering for their content type, with the added feature of an exposed filter allowing an user to select stories by topic.  A Content Pane Display has been enabled for this View, so that it can be selected as source for a Panels-based page build.

Now, you would think that in order for the exposed filter (which is being rendered as a dropdown selector) to operate in an AJAXy way – for the list being displayed in the Pane to update upon select without refreshing the entire page – you would want to set the Use AJAX feature to YES when setting up the View.

Au contraire. In fact, you need to set Use AJAX to NO, and in the Pane settings for the Content Pane Display set Use Panel Path to YES. This causes queries and responses to move between the backend and the pane itself… using AJAX, evidently.

Completely non-intuitive.  Partly at odds with discussions found all over Drupal.org, such as http://drupal.org/node/115949, http://drupal.org/node/215927, http://drupal.org/node/770540. But it works for me for now.

Now I just need to see if I can get the “submit on select” thing to work, too.

Sigh. Drupal. My bread and my bane.