Need drag'n drop like tagpills but w/o tags

219 views
Skip to first unread message

Mat

unread,
Aug 15, 2017, 3:37:16 PM8/15/17
to TiddlyWiki
Desired end result: "Handles" that the visitor drags'n drops into his own TW to get an arbitrary but predefined load of tiddlers.

The new drag'n drop Tags functionality is very close... BUT it requires that everything is tagged with that tag. This is problematic in e.g the following use case:

The Graphs "framework", relies on Thomas Elmigers rpn plugin. I want to serve one single handle per graph, i.e so that visitors can do a single drag'n drop operation into their TW to get everything they need for that particular graph type. This is currently not possible without modifying Thomas' plugin (i.e add a tag to it), which I don't feel comfortable with.

So, the question is how to make such a non-intrusive single-handle for an arbitrary set of tiddlers, including plugins.

Thoughts?

<:-)




ste...@gmail.com

unread,
Aug 15, 2017, 4:58:23 PM8/15/17
to TiddlyWiki
Hi Mat,


On Tuesday, August 15, 2017 at 9:37:16 PM UTC+2, Mat wrote:
Desired end result: "Handles" that the visitor drags'n drops into his own TW to get an arbitrary but predefined load of tiddlers.

Did you try the ButtonWidget together with the "dragFilter" attribute? http://tiddlywiki.com/#ButtonWidget 

This code, for example, makes the entire content of the current story river draggable:

<$button dragFilter="[enlist{$:/StoryList!!list}]">
Drag and drop current story list
</$button>

Cheers,

Stef

Mark S.

unread,
Aug 15, 2017, 5:21:51 PM8/15/17
to TiddlyWiki
If you exported (perhaps using Marios bundler) a set of tiddlers, then put links to the export packages, couldn't people just drag and drop them into their tiddlers?

Have fun,
Mark
Message has been deleted

ste...@gmail.com

unread,
Aug 15, 2017, 6:30:22 PM8/15/17
to tiddl...@googlegroups.com
Updated and corrected reply (I'm going to delete my earlier post due to a small error). 

Regarding my suggestion below: If you don't like buttons, you could try this instead (replace "[enlist...]" with the titles of all the tiddlers you want to drag and drop in double square brackets with a space in between, or with a reference to a list of tiddlers stored elsewhere):

<$draggable filter="[enlist{$:/StoryList!!list}]">

Drag and drop current story list
</$draggable>


Mark S.

unread,
Aug 15, 2017, 6:42:05 PM8/15/17
to TiddlyWiki
That's a great idea -- I humbly withdraw my suggestion about export files.

Mark

Mat

unread,
Aug 16, 2017, 3:06:16 AM8/16/17
to TiddlyWiki
<$draggable ...

No way! How simple and elegant! I did know about it since last release, but hadn't realized it was this direct. The draggable widget would do well with some docs examples.

...oooh, the little Graphologists shall be so happy ;-)

Thank you Stef, and also Mark. And not least Jeremy and any other hero involved in this widget!

<:-)

Alex Hough

unread,
Aug 16, 2017, 4:48:03 AM8/16/17
to TiddlyWiki
Wow!

This would work well in the open tab, an option before close all

Alex

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bb83b945-527e-4845-8bd8-24b2719d1455%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

ste...@gmail.com

unread,
Aug 16, 2017, 5:21:12 AM8/16/17
to TiddlyWiki
Hi Alex,
On Wednesday, August 16, 2017 at 10:48:03 AM UTC+2, AlexHough wrote:

This would work well in the open tab, an option before close all


This is a bit crude, but it seems to work:

$:/core/ui/SideBar/Open

\define lingo-base() $:/language/CloseAll/

\define drop-actions()
<$action-listops $tiddler="$:/StoryList" $subfilter="+[insertbefore:currentTiddler<actionTiddler>]"/>
\end

<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
<div style="position: relative;">
<$droppable actions=<<drop-actions>>>
<div class="tc-droppable-placeholder">
&nbsp;
</div>
<div>
<$button message="tm-close-tiddler" tooltip={{$:/
language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="tc-btn-invisible tc-btn-mini">&times;</$button> <$link to={{!!title}}><$view field="title"/></$link>
</div>
</
$droppable>
</div>
</
$list>
<$tiddler tiddler="">
<$droppable actions=<<drop-actions>>>
<div class="tc-droppable-placeholder">
&nbsp;
</div>
<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></
$button>
</$droppable>
<$draggable filter="[enlist{$:/StoryList!!list}]" class="tc-btn-invisible tc-btn-mini">
drag and drop all
</
$draggable>
</$tiddler>

Cheers,

Stef

Alex Hough

unread,
Sep 20, 2017, 12:27:17 PM9/20/17
to TiddlyWiki
Excellent,

Thanks Stef.

You can drag all the open tids onto a tag-pill drop-down: makes ordering easier

Alex

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Reply all
Reply to author
Forward
0 new messages