Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-22 14:11:42

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

[request] Auto-fill bookmarklet

All,

I’ve been thinking a while about some sort of bookmarklet that takes values from one page to another.

Example: I’m on a page, and select a piece of text. I click a bookmarklet, and this takes me to the “Write”-tab in TxP. The piece of text I selected before is entered in the Body field, the page title in the Title field, and the URL in a custom field I called “URL”.

Now I understand everyone has a different custom setup, so it would be great to be able to select what value goes where.

I know Mary wrote an excellent one (upm_quick_write, screenshot) that opened a small popup window, but it doesn’t allow me to use custom fields. And I think a lot of other people would love some custom field-love too…

I have no idea if this is technically possible, but wanted to throw it out here.


Textpattern projects: Maxvoltar, Made by Elephant, Twunch

Offline

#2 2008-12-22 14:46:37

Sam
Member
From: New York City
Registered: 2004-06-26
Posts: 127
Website

Re: [request] Auto-fill bookmarklet

This shouldn’t be too difficult to be honest, I’d imagine it wouldn’t be dissimilar to what Mary has created for the popup bookmarklet.

Something like this would be awesome:

/textpattern/index.php?event=article&title=**REFERRING-SITE-TITLE**&url=**REFERRING-URL**&content=**SELECTED-TEXT**

In bookmarklet JS form obviously. I also would love to see this.

Offline

#3 2009-01-12 13:28:19

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

Re: [request] Auto-fill bookmarklet

Here’s a small bump up, together with some fresh thoughts.

  • Sam Brown could make the Bookmarklet (as he did for Commented On)
  • TextPattern uses jQuery.
  • With this jQuery plugin, you are able to get variables from the URL.
  • You can attach this JS-file in /textpattern/lib/txplib_head.php

All we now need is a piece of code, free to edit, that maps values from the url to certain fields. (Page title = Title, Selected text = Body, URL = custom field, …)

Or am I talking bullocks here? I’m not good enough in jQuery, but think this should be perfectly possible…


Textpattern projects: Maxvoltar, Made by Elephant, Twunch

Offline

Board footer

Powered by FluxBB