I have the module installed, but when I try it, it doesn't prepopulate the forms. All I get are blanks.
Here is the bookmarklet javascript link it generated:
javascript:w=window;d=document;a=encodeURIComponent(d.location.href);t=encodeURIComponent(d.title);if(w.getSelection){s=w.getSelection();}else if(document.getSelection){s=document.getSelection();}else if(document.selection) {s=d.selection.createRange().text;}else{s='';};void(w.open('http://kirkcaraway.com/nodeformpopup/add/story?&url='+a+'&title='+t+'&description='+s, null,'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=730,height=500'));
Now, I had been using a hacked-together bookmarklet for a while that worked OK. I changed it to work with nodeformpopup, and it does bring in highlighted text and links. But for some reason, about half the time it brings up a blank window. Here is the javascript link for this bookmarklet:
javascript: u=document.location.href; t=document.title.replace(/\|/g,'::'); s='<blockquote>'+document.getSelection()+'</blockquote>'; pre='<a target=%22_blank%22 href=%22'+escape(u)+'%22>'+escape(t) + escape('</a>:<br /> '); void(window.open('http://kirkcaraway.com/nodeformpopup/add/story?edit[title]='+escape('Link: '+t)+'&edit[body]='+pre+escape(s)+escape(''),'_blank','width=710,height=500,status=yes,resizable=yes,scrollbars=yes'));
Any clues on why this is happening would be greatly appreciated. thanks.
Comments
Comment #1
maui1 commentedGreat to see this module made it to 5.1
I am having the same problem however with the bookmarklet failing to prepopulate the form.
Comment #2
maui1 commentedIn trying to track down the problem here, I noticed that changes made to the node form template in content types, does not seem to save.
I add the place holders, eg %title, %url, %description but after saving them the nodeformtemplate comes up blank.
Comment #3
Egon Bianchet commentedThis module doesn't fill up the form, it just provides the form in a popup facility. To have the form filled you have to use it in combination with nodeformtemplate, or in alterative, override the bookmarklet theme function and use Drupal's edit[field] mechanism like you did.