############################## # # # Textpattern-bookmarklet # # # ############################## http://www.sencer.de/article/112/textpattern-bookmarklet 1. What does it do: This loads a mid-size Window with the textpattern writing pane. It also pre-loads a couple of the fields as follow ( I use the custom fields for my Linkblog): custom_1 (closet) = Page-Title custom_2 (cupboard) = Page-URL Title (of the post) = Page-Title Body (of the post) = via-link to the referrer 2. Getting it to work In the below Javascript replace "localhost/textpattern" with your own site's URL to your textpattern-software. Create a bookmark and put the resultung string in it. javascript:refsite=document.referrer;slashindex=refsite.indexOf('/',8);refsite=refsite.substring(7,slashindex);void(txp_link=window.open('http://localhost/textpattern/index.php?event=article&bm=1&custom_1='+escape(document.title)+'&Title='+escape(document.title)+'&custom_2='+escape(window.location.href)+'&Body='+escape('(via '+refsite+')'),'_blank','width=640,height=600,status=no,resizable=no,scrollbars=no'));txp_link.focus();window.focus();