-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] calling tag-picker macro with a tagFields=foo shows the tags field instead of foo #7461
Comments
Related Talk thread: https://talk.tiddlywiki.org/t/tag-picker-is-not-working-independently/7029 |
The contents of the tag input dropdown list should be configurable, and for backward-compatibility should still default to showing a list of tag values, regardless of the target In the main
Then, in the
Also, change field
and change field
With these changes in place, you can then write:
to populate the dropdown list with all values currently contained within |
@ericshulman ... These changes suggest, that That's OK for users, that know what they do. .. What I do not like too much is, that there need to be 2 parameters which depend on each other. ... See the foo field name in the line below.
I would prefer, to be able to call the macro as follows and it should still work.
Did you test it with: I think it should work and give us both possibilities. Users can provide a different What do you think? |
Having a closer look, I think we should let the "tag-picker" macro alone and create a new "picker-macro" that uses v5.3.0 options. I think, it would be a good exercise and could be a "real-world" example, to show the differences between v5.2.x code and v5.3.0 code. We would have no problems with backwards compatibility, since the imo the name "tagField" parameter is completely wrong if used with a different field name. IMO it should be "field". The same is true for the "tagFilter" parameter .. and so on. There are several The "first-search-filter" and "second-search-filter" fields are way to brittle and not flexible at all. @Jermolene .. What do you think? |
I think we should merge these suggestions from @ericshulman.
I think that's a fairly common issue with macros that use state tiddlers. It can be avoided by placing the macro calls within unique transclusions, or by setting up a suitable value for the |
Your suggestion to use Of course, your idea for a completely new |
This could be addressed in
and then replacing the 3 hard-coded instances of |
@Jermolene Eric is right here but I think calling tag picker with strict backwards compatibility shows this --- IMO it should show a list of all possible values of the "foo - field" @Jermolene ... Just post your decision. I'll implement it that way |
I disagree. IMO, there is no compelling need to break 100% backwards-compatibility. Consider: Changing this would require that anyone currently using the existing implementation would need to update their wikis to force the list back to containing tag values (i.e., by using |
close this one -- has been implemented in a reasonable way since then. |
Describe the bug
calling tag-picker macro with a tagFields=foo shows the tags field instead of foo
To reproduce
tags
field instead of a list of all "foo-fields"Expected behavior
It should use the content of all the foo-fields
The text was updated successfully, but these errors were encountered: