Hi RickL,I just created an equivalent for cycletags from TW2 in TW5:
I am using the cycle tags macro in a TW5 Task List to track projects and tasks.
I have a master list of tasks, some tied to projects and some not.
Also, for each project, I have a list of tasks for said project.
The cycle tags macro works fine in the master list of tasks, but I noticed when I try to have the same function in the project list of tasks the macro will not perform properly.
See example here and let me know if you can spot the problem.
Thanks for any help
<$tiddler tiddler=<<currentTiddler>>>
<<cycletags "A B C W" prio label:">" class:"tc-btn-invisible next-prio">>
<style>.next-prio {color:red}</style>
</$tiddler>
Hi RickL,There are a few issues with your example.
@Jeremy: The reason why the project list doesn't update is because (oddly?!?) TiddlyWiki appears to not refresh the list item when you modify the tiddler associated with it, which it should, imho. To actually force it to do so, wrap the cycletags macro in the tiddler widget like so:
<$tiddler tiddler=<<currentTiddler>>>
<<cycletags "A B C W" prio label:">" class:"tc-btn-invisible next-prio">>
<style>.next-prio {color:red}</style>
</$tiddler>
Not exactly sure I understand how / why (the output of) cycletags forgets its context (tiddler) when run or how to prevent it from doing so.Pay attention to parameters. In your code you specify "class=class-name" instead of "class:class-name".
I would not recommend placing styles within list iterations. Use a global stylesheet tiddler instead.Eventually, when you output a table, all elements within a tr need to be (wrapped with) either td's or th's, otherwise you break the table layout.Best wishes,
Tobias.
Is it possible to set the field text color of a specific field globally for the entire TW, so must this be done at the tiddler level?
As you can see by my example, I have the due dates for Tasks in red.Your comment - "I would not recommend placing styles within list iterations. Use a global stylesheet tiddler instead." made me think I should be doing this differently but not sure how to do it.