Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Page Manager
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2011 at 20:41 UTC
Updated:
26 Apr 2012 at 22:11 UTC
Hello, this import of a page caused all nodes on my site to be "access denied" even for the admin user.
Facilitator is a role for a user
View was access denied, edit and other URLs appeared relatively fine.
// this is some code that set all nodes to view=access denied
$page = new stdClass;
$page->disabled = FALSE;
$page->api_version = 1;
$page->name = 'facilitators_by_article';
$page->task = 'page';
$page->admin_title = 'facilitators-by-article';
$page->admin_description = '';
$page->path = 'node/%article/facilitators';
$page->access = array(
'plugins' => array(
0 => array(
'name' => 'node_type',
'settings' => array(
'type' => array(
'article' => 'article',
),
),
'context' => 'argument_entity_id:node_1',
'not' => FALSE,
),
),
'logic' => 'and',
);
$page->menu = array(
'type' => 'default tab',
'title' => 'Facilitators',
'name' => 'navigation',
'weight' => '0',
'parent' => array(
'type' => 'none',
'title' => '',
'name' => 'navigation',
'weight' => '0',
),
);
$page->arguments = array(
'article' => array(
'id' => 1,
'identifier' => 'Node: ID',
'name' => 'entity_id:node',
'settings' => array(),
),
);
$page->conf = array(
'admin_paths' => FALSE,
);
$page->default_handlers = array();
$handler = new stdClass;
$handler->disabled = FALSE;
$handler->api_version = 1;
$handler->name = 'page_facilitators_by_article_panel_context';
$handler->task = 'page';
$handler->subtask = 'facilitators_by_article';
$handler->handler = 'panel_context';
$handler->weight = 1;
$handler->conf = array(
'title' => 'Panel',
'no_blocks' => 0,
'pipeline' => 'standard',
'css_id' => '',
'css' => '',
'contexts' => array(),
'relationships' => array(),
);
$display = new panels_display;
$display->layout = 'onecol';
$display->layout_settings = array();
$display->panel_settings = array(
'style_settings' => array(
'default' => NULL,
'middle' => NULL,
),
);
$display->cache = array();
$display->title = '';
$display->content = array();
$display->panels = array();
$pane = new stdClass;
$pane->pid = 'new-1';
$pane->panel = 'middle';
$pane->type = 'views';
$pane->subtype = 'facilitators_by_article';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'override_pager_settings' => 0,
'use_pager' => 1,
'nodes_per_page' => '0',
'pager_id' => '0',
'offset' => '0',
'more_link' => 0,
'feed_icons' => 0,
'panel_args' => 0,
'link_to_view' => 0,
'args' => '%1',
'url' => '',
'display' => 'default',
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$display->content['new-1'] = $pane;
$display->panels['middle'][0] = 'new-1';
$display->hide_title = PANELS_TITLE_FIXED;
$display->title_pane = 'new-1';
$handler->conf['display'] = $display;
$page->default_handlers[$handler->name] = $handler;
$pages['facilitators_by_article'] = $page;
Comments
Comment #1
merlinofchaos commentedOi. That's a problem with the 'default tab' -- you can't use that setting, it tries to take over node/% and probably makes a mess of it.
We should probably try to validate that and not let it happen. That said, you can fix this problem by changing the menu setting on that page from default tab to just tab.
Comment #2
MichaelCole commentedGood to know. Amazingly powerful the Page Manager, thanks!
Comment #3
Ashlar commented