I tried to set a node-type as default which has no body field but a cck textfield. I know I have to map this field but right now I don't care. Anyway, the bookmarklet dialog shows the node/add page instead of the node form.

When I change the default node type to something that has a body-field, it seems to work though.

Comments

japanitrat’s picture

Title: Won't display default node type if type has no body field » Won't display default node type

I just found the actual bug. It had nothing to do with the body field (doh).

Although all enabled node types get hyphenated, the default node type is not hyphenated. It's an easy fix in the current dev snapshot, line 453:

change

'defaultType' => variable_get('bookmarklet_default_node_type', 'story'),

to

'defaultType' => str_replace('_', '-',variable_get('bookmarklet_default_node_type', 'story')),