The bookmarks provided does not seem to work properly anymore. Not for stories, not for blogs, not for pages, not for custom nodetypes.

They open the popup window but the fields are not filled out with the data fra the source page.

This used to work. The provided javascript looks like this:

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://zensci.com/nodeformpopup/add/blog?&url='+a+'&title='+t+'&description='+s, null,'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=730,height=500'));

What has changed recently?

Comments

Egon Bianchet’s picture

Status: Active » Closed (works as designed)

The problem is that nodeformpopup doesn't bother to fill the form: every node type has different fields with different names so if would be difficult to support every type out there.

So I contributed the nodeformtemplate module: it lets you fill out a "template" form for each node form, so you can put the %tite, %description and %url placeholders where appropriate.

For example with the storylink module you could just fill out title with %title, url with %url and body with %description.

For the story type you could fill the title with %title, and fill the body with something like this:

<a href="%url">%title</a>
<blockquote>%description</blockquote>
lennart’s picture

Great! Thanks a lot!