On Saturday, July 15, 2017 at 7:21:07 AM UTC-7, mervin mecklenburg wrote:
>
> I want to make a dropzone that tags the action tiddler, or the tiddler 
> dragged into the dropzone, with the title of the tiddler hosting the drop 
> zone. The solution I have created works unless the proposed tag has more 
> than one word; then each word presents as a separate tag; ie, if the 
> hosting tiddler is entitled "DropZone" my solution works fine, but if the 
> title is "Drop Zone," then two tags are produced, "Drop" and "Zone." I need 
> the entire title to be one tag.
>
>
> Here is an example of my code:
>
>
> \define droppable-projectnotes() <$action-listops 
> $tiddler=<<actionTiddler>> $tags="+[append<currentTiddler>]"/> \end 
>

The parameter for the append[...] list-ops filter expects a *list* of 
values to add.  As a result, spaces are treated as separators between 
individual tags "Drop" and "Zone".

Try using the insertbefore[...] filter instead: 
http://tiddlywiki.com/#insertbefore%20Operator.  As noted in the 
documentation, if you do not specify the "B" (before) tiddler as a suffix, 
the new value is added to the *end* of the list.  Something like this:

<$action-listops $tiddler=<<actionTiddler>> $tags="+[insertbefore<
currentTiddler>]"/>

Let me know how it goes.

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas" (tm)
InsideTiddlyWiki: The Missing Manuals

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/462b214e-eafc-4fb6-b43d-99e22e3657e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to