I created a custom content type "Plus 1" and a view to list all "Plus 1" content. When I create a bookmarklet to add new content of that type, I only get to the node/add page, although the url contains the required information. I verified that it works for the "blog" content type. Here is an example of the url for the new content type (highlighted the word "Dozens" from www.livescience.com):

http://mydomain.com/node/add/plus_1?edit[title]=Science%20News%20%E2%80%...

Comments

BrockBoland’s picture

Category: bug » support

This is probably a configuration issue on your site. Try manually cutting down the length of the URL to use something short like this:
http://dotcadot.ca/node/add/plus_1?edit[title]=Test Title&edit[body][und][0][value]=This is the body

Does that work?

Also check if you have suhosin installed on your server. I had some issues with it on my host: http://drupaldork.com/2012/04/quickpost-bookmarklet-dreamhost-vps-suhosin

Seven_Six_Two’s picture

Thanks for your quick reply! I figured it out, and know how to reproduce the problem.
I have suhosin patch and extension, although i made the modification indicated by your blog post.
The problem seems to be with using the bookmarklet with content types that contain a space in their name, which causes an underscore in the machine name. While it doesn't cause an issue while creating a post manually, something goes wrong with the bookmarklet.
I changed the name of my content type from "Plus 1" and machine name "plus_1" to "Plus1" and "plus1". This solved the problem, although I am not sure why it occurs, or whether it's still a config problem on my end.
Let me know if you have any questions, and thanks again for your help.
JP

BrockBoland’s picture

Title: Bookmarklet opening node/add when created for custom content type » Bookmarklet doesn't work for content types with underscore in machine name
Category: support » bug
Status: Active » Fixed

Wow, good catch! I didn't realize that node/add paths replace the underscore with a hyphen in the node type machine name. I just pushed a fix for this, and a new release will be available here as soon as it's done packaging:
http://drupal.org/node/1554834

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

verified blog content type.