Can someone help me?
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
<$droppable actions=<<droppable-projectnotes>>>{{$:/core/images/copy-clipboard}}AddProjectNotes</$droppable>
I have tried several solutions, but the answer has escaped me. Does anyone have an answer? I'm sure that here is a simple fix.
Merv
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
I'm still struggling with this. I tried your suggestion, but the "Insertbefore" is not giving me a return.
Here is a copy of the relevant code using the listbefore operand:
\define droppable-projectnotes() <$action-listtops $tiddler=<<actionTiddler>> $tags="+[insertbefore<currentTiddler>] \end <$droppable actions=<<droppable-projectnotes>>>{{$:/core/images/copy-clipboard}}AddProjectNotes</$droppable>
I as not able to find any examples in the documentation of the listbefore operand being used. Perhaps I am missing something.
Do you have any suggestions. I appreciate all of the suggestions I get from this forum, and I find much in this forum helpful.
Merv
I'm still struggling with this. I tried your suggestion, but the "Insertbefore" is not giving me a return.
Here is a copy of the relevant code using the listbefore operand:
\define droppable-projectnotes() <$action-listtops $tiddler=<<actionTiddler>> $tags="+[insertbefore<currentTiddler>] \end <$droppable actions=<<droppable-projectnotes>>>{{$:/core/images/copy-clipboard}}AddProjectNotes</$droppable>