How to transclude all tiddlers tagged with the current tiddler into a draggable list?

101 views
Skip to first unread message

si

unread,
Sep 1, 2019, 3:16:53 PM9/1/19
to tiddl...@googlegroups.com
Hello everyone.

I am trying to transclude all tiddlers tagged with the current tiddler into a draggable list.

I have tried this macro:

<$macrocall $name="list-tagged-draggable" tag={{!!title}} itemTemplate="$:/_DraggableTemplate"/>

With the template tiddler $:/_DraggableTemplate:

\define transclude() {{$(currentTiddler)$}}

<<transclude>>

The result is that the tiddlers are transcluded, but when I try to drag and drop all that happens is that a tiddler gets create named:

<span class=" tc-droppable">blah blah blah</span>

What I am doing wrong?

Thanks in advance.

Thomas Elmiger

unread,
Sep 1, 2019, 4:20:22 PM9/1/19
to tiddl...@googlegroups.com
Hi

The most simple way I can think of is this:

<<tag !!title>>

After saving, it will produce a tag pill. Click the tag pill, and a popup shows all the tagged tiddlers in a draggable list.

All the best,
Thomas


Am Sonntag, 1. September 2019 21:16:53 UTC+2 schrieb si:
Hello everyone.

I am trying to transclude all tiddlers tagged with the current tiddler into a draggable list.

I have tried this macro:

<$macrocall $name="list-tagged-draggable" tag={{!!title}} itemTemplate="$:/_DraggableTemplate"/>

With the template tiddler $:/_DraggableTemplate:

\define mytags() {{$(currentTiddler)$}}

<<mytags>>

Birthe C

unread,
Sep 1, 2019, 5:26:29 PM9/1/19
to TiddlyWiki
Maybe try

<$macrocall $name="list-tagged-draggable" tag=<<currentTiddler>> itemTemplate=""/>


Birthe

TonyM

unread,
Sep 1, 2019, 7:42:59 PM9/1/19
to TiddlyWiki
Folks,

I was using the request in this thread to investigate the possibilities and am still working on it however I thought I would note
  • The link widget includes a draggable option
  • Unfortunately the DraggableWidget documentation does not include examples but can achieve this by filter
I personally want to make tiddlers draggable that exist in a tree of tiddlers containing the parent field. ie the children/grandchildren of a nominated tiddler.

Regards
Tony

si

unread,
Sep 2, 2019, 11:30:07 AM9/2/19
to tiddl...@googlegroups.com
Thanks for your replies.

I think I was unclear in my original post. I want to transclude the text of each tiddler as a list, and be able to rearrange these transclusions using drag and drop.

I have found that if I highlight the transcluded text and try to drag and drop, a tiddler is created with something like the following title:

<span class=" tc-droppable">blah blah blah</span>

This happens every time I try this.

I have since realized that this happens for any draggable list if you highlight the text instead of just click on it. Go to https://tiddlywiki.com/#TaskManagementExample%20(Draggable) and try it to see what I mean. Look at "recent" to see the tiddlers that get created.

Maybe this is a bug?

My current solution to my original question is to change my template to the following:

\define link() [[>|$(currentTiddler)$]]

<$transclude mode="inline"/> <<link>>

So each transcluded piece of text has a link at the end of it that can be 'drag and dropped'. Just to be clear, the problem outlined above still exists when I try to drag and drop highlighted text.

Thanks again for your help.
Reply all
Reply to author
Forward
0 new messages