Block assignments with Path wildcards

roopletheme - October 1, 2008 - 10:22
Project:Taxonomy Theme
Version:5.x-1.1
Component:Code / API
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello. I'm experiencing difficulties with the taxonomy theme module and block assignments when used with extended paths created using the the core Path module. I've read through the issue queue, particularly the issues related to block assignments and multiple themes, and I believe that the issue I'm experiencing is different than the existing reported issues. I'm very familiar with drupal block assignment and the need to assign blocks uniquely for each theme separately, and I'm confident that this is not simply a cockpit error on my part.

It's somewhat complex to explain, but here's what I'm trying to do...

I've got two themes installed. I've configured the taxo theme module so that I can select the theme on the node edit pages. I want to use Theme One for most pages on my site, and Theme Two for specific pages. I'm using the core Path module to distinguish the unique content that I want Theme Two applied to. For example, If I create a a page and assign it a URL path of themetwo (i.e. mysite.com/themetwo), and then select Theme Two on the node edit page, the theme gets applied. This part works great. If, however, I create a URL heirachy that includes a slash character in the URL, block assignments are not correctly applied to the pages that use Theme Two.

An example might better demonstrate the issue...

I create a page with a URL of 'newproduct'. I create another page with a URL of 'newproduct/overview'. I create a third page with a URL of 'newproduct/handbook'. For each of these pages, I select Theme Two as the theme on the node/edit pages for each node.

Then I publish a block to a region on the block page for Theme Two, and under block visibility settings, I specify that the block should appear for pages 'newproduct' and 'newproduct/*'. The block will appear on the 'newproduct' page, but not for the 'newproduct/overview' or the 'newproduct/handbook' pages. In fact, the block will not display for any URL that includes a slash character.

If I use URLs of 'newproductoverview' and 'newproducthandbook' for the pages, the block assignments work as I expect. But for any page where the URL includes a slash character, block assignments do not get applied when using the taxonomy theme module.

As I stated, I'm assigning the blocks for each theme separately, and the steps that I describe work correctly when I use them with a single theme, or with multiple themes that are not activated via the taxonomy theme module.

I realize that this is a convoluted description, but I'm not sure how else to explain it. I'm confident that the method of block assignment that I'm using should work correctly, and I've used such block assignment methods for numerous sites without problems. Any guidance would be greatly appreciated.

Thanks,
Bill

 
 

Drupal is a registered trademark of Dries Buytaert.