Petri,

I am only starting to make use of the drag and drop features myself. In 
this case you are using the macro  list-tagged-draggable but you can build 
your own. Its is defined in $:/core/macros/list

I suspect the inability to use a tiddler title with spaces may be a design 
weakness of the macro.

A quick solution to current tiddler with spaces *may* be tag={{{ 
[<currentTiddler>] }}}

Tones
On Thursday, 26 November 2020 at 01:29:17 UTC+11 Petri M. wrote:

> Oh and apparently using <$macrocall $name="list-tagged-draggable" 
> itemTemplate="TODO task list template children" tag=<<currentTiddler>>/> 
> will break the tags if the currentTiddler has spaces in its name. Putting 
> quotes around the macro <<currentTiddler>> will just tag it with 
> "<<currentTiddler>>" and not with "this is my current tag".
>
> BR,
> Petri M
> On Wednesday, November 25, 2020 at 3:53:59 PM UTC+2 Petri M. wrote:
>
>> Hi Tones,
>>
>> Ohh thank you so much! I looked into the <$macrocall/> and tried to use 
>> it directly with the <<list-tagged-draggable>> macro and it worked 
>> perfectly. Well almost perfectly. 
>>
>> There is one issue. If I use <$macrocall $name="list-tagged-draggable" 
>> tag=<<currentTiddler>>/> then everything works fine and I am able to make 
>> subtasks of subtasks by just dragging them, which is exactly what I want. 
>> However, I cannot figure out on how to do the indentation. Inline css with 
>> @@margin-left:10px ... @@ does absolutely nothing. I can fix this by using 
>> something like
>> <$macrocall $name="list-tagged-draggable" itemTemplate="TODO task list 
>> template" tag=<<currentTiddler>>/> where I add the inline css in the 
>> template file itself. But now I lose the ability to make subtasks of 
>> subtasks. I would like to have the indentation so that each subtask is 
>> slightly indented so it is easier to see.
>>
>> ps. though I do have to say that I did not undertand much about the rest 
>> of your comment. Did you mean that I could use <<$macrocall $name=tag 
>> tag=<<tagname>> /> or {{||$:/core/ui/EditTemplate/tags}} in my example code 
>> that I said works? What did you mean by all the bullet points? 
>>
>> BR,
>> Petri M
>> On Tuesday, November 24, 2020 at 12:03:46 AM UTC+2 TW Tones wrote:
>>
>>> Petrie,
>>>
>>> If the list you wish to make draggable is the list of items tagging the 
>>> parent, then you need to name the parent. In your example the 
>>> currentTiddler changes, you could use the variable=varname on your $list so 
>>> you can reference both the "sub tiddlers" and parent.
>>>
>>> Another option is to use <<$macrocall $name=tag tag=<<tagname>> /> 
>>> because the tag pill list is draggable. or  
>>> {{||$:/core/ui/EditTemplate/tags}}  to act on currentTiddler.
>>>
>>>
>>>    - This will permit spaces ion tags <<list-tagged-draggable 
>>>    tag:"$tag$">>
>>>    - <$link /> is the same as
>>>
>>>
>>>    - 
>>>       - <$link to=<<currentTiddler>>>
>>>       <$view field="title"/>
>>>       </$link>  
>>>       
>>>
>>>    - 
>>>
>>>
>>> Tones
>>>  
>>>
>>> On Monday, 23 November 2020 at 22:51:59 UTC+11 Petri M. wrote:
>>>
>>>> I can't figure this one out. I have a simple task list which I populate 
>>>> via <<list-tagged-draggable>> macro with a template:
>>>>
>>>> <$checkbox tag="Task done"></$checkbox>
>>>> <$link to=<<currentTiddler>>>
>>>> <$view field="title"/>
>>>> </$link>
>>>>
>>>> and this works fine. However, I would like to add to this template a 
>>>> part which adds *another *checkbox list for *subtasks*, so tasks with 
>>>> the same title as the task in question. Something like this works: 
>>>>
>>>> <$list filter="[tag<currentTiddler>]">
>>>> <br>
>>>> @@margin-left:10px;
>>>> <$checkbox tag="Task done"></$checkbox>
>>>> <$link to=<<currentTiddler>>>
>>>> <$view field="title"/>
>>>> </$link>
>>>> @@
>>>> </$list>
>>>>
>>>> But I would like to have the sublist be draggable just like my parent 
>>>> list, hence it should be populated via the <<list-tagged-draggable>> 
>>>> macro. However, apparently I cant use <$list-tagged-draggable> 
>>>> </$list-tagged-draggable> because it does nothing, so I can't use the 
>>>> same format as in the example. Then I tried to use the macro itself with 
>>>> something like <<list-tagged-draggable tag:<<currentTiddler>>>> but 
>>>> this does not work. I tried to put the macro in a helper macro:
>>>>
>>>> \define childlist(tag:"asd")
>>>> <<list-tagged-draggable tag:$tag$>>
>>>> \end
>>>>
>>>> but I could not figure out on how the hell do I pass the output of the 
>>>> <<currentTiddler>> 
>>>> to this macro. I tried using $tag$, $(tag)$ and calling with 
>>>> <<currentTiddler>> and with $(currentTiddler)$ but nothing seem to 
>>>> work.
>>>>
>>>> Can someone shine some light on this issue?
>>>>
>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/edcc979a-db9d-4611-a836-3913ef39af65n%40googlegroups.com.

Reply via email to