Hello,
First off, thank you for the wonderful module. I have a quick question. Will this work on individual panels pages? Since a "panel page" is a singular node type, I was not sure if blocks could be defined further for individual pages.

thanks again!

Comments

g76’s picture

Category: support » feature

edit to my previous post: sorry I did not explain very well (alot of work-not enough sleep:))

My question is since a panel is not a node(although panel nodes are), can this be implemented for panel pages?

thank you again

gloaguen’s picture

Node Level Blocks is designed for use with nodes.
I didn't tested this for panels.

Can you let me know if this works, maybe with some additional changes?

gloaguen’s picture

Priority: Normal » Minor
Status: Active » Postponed (maintainer needs more info)

Waiting for response.

awolfey’s picture

I am pretty sure this won't work as is.

However, I may need to port NLB to D7 for a current project that heavily uses panels, and if so I'll probably have to include panels support. Hopefully we can backport that.

capellic’s picture

I could see this not support Panels, especially for panel variants not in the Node Template (node_view) panel since there would be no way to set the blocks given the premise (and name) of this module.

But, I would like to see this module honor the setting in the variant, "Disable Drupal blocks/regions." It currently ignores this.

I'm currently working on a work-around to get the blocks to load into a single Panel pane. It works, but I need to short-circuit Node Level Block's loading of the blocks.

The code in a custom pane with PHP enabled:

$blocks = node_level_blocks_node_load_blocks(arg(1));
foreach($blocks as $row) {
	$module = $row->module;
	$delta = $row->delta; // could also be a string
	$block = module_invoke($module, 'block', 'view', $delta);
	$block = !empty($block) ? (object)$block : new stdclass;
	$block->module = $module;
	$block->delta = $delta;
	$block->region = $row->region;
	echo theme('block',$block);
} 
Johnny vd Laar’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I won't be supporting D6 new features. Also I don't use panels so someone who wants this should add a patch for this.