This problem is described here: http://groups.drupal.org/node/8566 I also run in to it and manage to add a quick fix for it. However, I'm not sure this is the best way to do it. It could require in other parts also where the module takes the node-type arg from URL.

The bug arrise because: (quote from cck edit form): "The machine-readable name of this content type. This text will be used for constructing the URL of the create content page for this content type. This name may consist of only of lowercase letters, numbers, and underscores. Dashes are not allowed. Underscores will be converted into dashes when constructing the URL of the create content page. This name must be unique to this content type."

so in arguments/node_add.inc line 38. replace

  if (array_filter($conf['types']) && empty($conf['types'][$arg])) {
    return FALSE;
  }

with

   //cck translate '_' in '-' in URLs. Replace them back so we can find them.
  $arg = str_replace('-', '_', $arg);


  if (array_filter($conf['types']) && empty($conf['types'][$arg])) {
    return FALSE;
  }

Comments

diricia’s picture

This patch broke CCK. I could not see/access the url to 'Manage fields' on any of my content types.

WiseTeck’s picture

Maybe because you are using the CCK edit page inside a panel. On my site I can access the normal 'Manage fields' page without any issues.

example.com/admin/content/types/CONTENT-TYPE/fields

I'm not sure how you can go around this but if you have too keep the 'manage fields' in a panel.

esmerel’s picture

Status: Needs review » Closed (won't fix)

No changes to be made to 2.x code.