Skip to content

list-links-draggable macro should use value of currentTiddler if tiddler parameter is missing #7024

@AnthonyMuscio

Description

@AnthonyMuscio

Describe the bug

The list-links-draggable macro fails to work as expected if you do not provide the tiddlername with the tiddler parameter;

Expected behavior

If we used <<list-links-draggable field:list-field>> in the view template we would expect to be able to reorder the titles found in the list-field of the current tiddler and it appears to be the case, but the change is not captured.

The workaround is to use the macrocall
<$macrocall $name=list-links-draggable tiddler=<<currentTiddler>> .../>

To Reproduce

Please see Expected behavior

Screenshots

No response

TiddlyWiki Configuration

  • Version [e.g. v5.2.3] and earlier
  • Saving mechanism N/A
  • Plugins installed N/A

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser firefox
  • Version Latest general release and earlier

Additional context

This problem has existed for a number of versions. It is often a stumbling block every-time I use the macro. Other core macros may have the same problem.

The current workaround is to use the macrocall widget and explicitly state tiddler=<<currentTidddler>>

ideal if no tiddler parameter value is given tiddler correctly defaults to currentTiddler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions