How do we node overrides for two different CCK content type? I manage to sucessfully override a content type with panels using node/% . However, node/% can only be used once. I can't override the node for the other content type. What other arguments can be used? I have tried the machine-readable name that I have assigned in CCK but it doesn't work.

Comments

Bedestenlioglu’s picture

You do not need different panel pages for different node types, on the same panelpage (with url node/%) go to context menu and configure the arguments (node id ) . You can select all the node types there . Do not forget to select the own display option for the same nodetypes .. Then you will see all the node types in layout, context,.. menus in panelpage configuration..

Selda

limwork’s picture

Ok, I get it. Thank for the help!

buzz05’s picture

I create the different arguments using the node ID but i'm still not seeing the different node types in layout, context etc...

I found this tutorial: http://sirkitree.net/panels2-context-screencast which seems to cover the topic quite well but i'm just not being presented with the options to select the different layouts and content depending on the argument.

Would it be possible to get an export of a panel page that uses node/% and has multiple arguments? This seems so simple but I just can't get it working???

Thanks.

Update: Here is an export of my panel page:

$page = new stdClass();
  $page->pid = 'new';
  $page->did = 'new';
  $page->name = 'test_panel';
  $page->title = '';
  $page->access = array();
  $page->path = 'node/%';
  $page->load_flags = 3;
  $page->css_id = '';
  $page->arguments = array(
    0 => 
    array(
      'name' => 'nid',
      'id' => 1,
      'default' => 'ignore',
      'title' => '',
      'identifier' => 'Node ID',
      'keyword' => 'node',
      'argument_settings' => 
      array(
        'types' => 
        array(
          'story' => 'story',
          'panel' => 0,
          'page' => 0,
        ),
        'own_default' => 0,
        'displays' => 
        array(
          'story' => 'story',
          'panel' => 0,
          'page' => 0,
        ),
      ),
    ),
    1 => 
    array(
      'name' => 'nid',
      'id' => 2,
      'default' => 'ignore',
      'title' => '',
      'identifier' => 'Node ID 2',
      'keyword' => 'node_1',
      'argument_settings' => 
      array(
        'types' => 
        array(
          'page' => 'page',
          'panel' => 0,
          'story' => 0,
        ),
        'own_default' => 0,
        'displays' => 
        array(
          'page' => 'page',
          'panel' => 0,
          'story' => 0,
        ),
      ),
    ),
  );
  $page->relationships = array();
  $page->no_blocks = '0';
  $page->switcher_options = array();
  $page->menu = '0';
$page->contexts = array();
$display = new panels_display();
$display->did = 'new';
$display->layout = 'twocol';
$display->layout_settings = array();
$display->panel_settings = array();
$display->content = array();
$display->panels = array();
$page->display = $display;
$page->displays = array();
  $page->displays['argument_0-story']['title'] = 'Node ID 1 Story';
  $page->displays['argument_0-story']['argument_id'] = '0';
    $display = new panels_display();
    $display->did = 'new';
    $display->layout = 'twocol';
    $display->layout_settings = array();
    $display->panel_settings = array();
    $display->content = array();
    $display->panels = array();
  $page->displays['argument_0-story']['display'] =  $display;
  $page->displays['argument_1-page']['title'] = 'Node ID 2 Page';
  $page->displays['argument_1-page']['argument_id'] = '1';
  $page->displays['argument_1-page']['display'] =  \NULL;
buzz05’s picture

Resolved: Not supported in Drupal 6.

sdboyer’s picture

Status: Active » Fixed

@buzz05 - you're kinda hijacking this issue because it pertains to D5, but...#314463: D6 port - create secondary tabs for context switching

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.