Way to enable a block created by a views action?

cdale - May 5, 2009 - 09:42
Project:Patterns
Version:6.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

The title says it all. :) I want to enable one of the blocks made by views, so how can I use a token in the pattern to specify either the whole block id, or just the display_id for the block?

Do you think it's safe to assume that all displays in a view follow a numeric pattern? so that the first a block display for the view named "test" will always have a block id of "test-block_1"?

#1

vaish - May 15, 2009 - 11:07

I believe that you can count on all the blocks created by views UI to follow that convention. However, it seems that default views may not always do that. I don't think that should be a problem since for default views you can always check their ID beforehand and hard-code it into pattern knowing it's not going to change.

Identifiers (tokens) are not implemented for views component so above convention is the only way of handling this issue at the moment.

 
 

Drupal is a registered trademark of Dries Buytaert.