[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-31 Thread 'Surya' via TiddlyWiki
Hey Mark, YES :-) That works! THANKS, Surya -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-31 Thread 'Mark S.' via TiddlyWiki
This seems to work: \define toc-caption() <$list filter="[all[current]tag[wichtig]]" variable="dum">@@color:red;<$view field="caption"><$view field="title"/>@@ <$list filter="[all[current]tag[RezeptGetested]]" variable="dum">@@color: green;<$view field="caption"><$view field="title"/>@@ <$list

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-31 Thread 'Surya' via TiddlyWiki
Hello coda coder, thanks for your answer. Following the principle that teaching a hungry man to catch fish is better > than feeding him a single fish... Yes, I like that principle and learned a lot by that in my whole life. But, on the site, you mentioned, it is only written how to style

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-31 Thread coda coder
Following the principle that teaching a hungry man to catch fish is better than feeding him a single fish... You need a stylesheet that uses .tc-tagged-wichtig etc. Read https://tiddlywiki.com/#How%20to%20apply%20custom%20styles%20by%20tag On Wednesday, January 31, 2018 at 1:31:36 PM UTC-6,

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-31 Thread 'Surya' via TiddlyWiki
Hi, again here :-) Now I have the situation, that I want in another wiki to have 3 types of showing tiddlerlinks in the sidebar (shown there with toc-selective-expandable): - Some tiddlers have the tag "wichtig" >they should be shown red in the sidebar. - Some tiddlers have the tag

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-14 Thread 'Surya' via TiddlyWiki
Hi Mark, Juhuu :-) (german word for being happy ;-) It works :-)) Thanks! The tiddlers tagged with Ja are always also tagged with Pflanzen. I just mentioned it, because I haven't been sure, if it is important to know for the macro. Thanks, now I have a good overview in the sidebar with just a

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-14 Thread 'Mark S.' via TiddlyWiki
In this case you could make a tiddler marked as global macro with the following contents: \define toc-caption() <$list filter="[all[current]regexp:tags[\bJa\b]]" variable="dum">@@color:red;<$view field="caption"><$view field="title"/>@@ <$list filter="[all[current]!regexp:tags[\bJa\b]]"

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-14 Thread 'Surya' via TiddlyWiki
Hi Mark, I made a tab in the sidebar with a tiddler. In this tiddler I have table of content with <> Does your idea work there? Would I have to modify it? The tiddlers, which should to be shown in another colour are tagged with "Pflanzen" and "Ja". -- You received this message because you

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-13 Thread 'Mark S.' via TiddlyWiki
You don't mention what tabs you want this used in. It turns out that you can over-ride timeline behavior (used by the Recent tab and others) by making a tiddler with the following contents: \define timeline-title() <$list filter="[all[current]regexp:tags[\bJa\b]]"

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-13 Thread Birthe C
Hi Tony, I know that the sidebar displays caption rather than title - but with the colours set from the palette, is it not so? Changes in the palette changes a lot of other places too. Birthe Den søndag den 14. januar 2018 kl. 01.18.46 UTC+1 skrev TonyM: > > The side bar displays the caption

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-13 Thread TonyM
The side bar displays the caption rather than title if they exist. By placing formats in the caption title it may change the display. I would create a custom list and tag it to appear in the sidebar, ion that I would put the Color and logic there rather than in each caption. Perhaps have a

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-13 Thread 'Surya' via TiddlyWiki
Hi Birthe, I discovered this great feature just a few days before :-) if I have tiddler called joke and shown in the sidebar and write manually in the caption-field @@color:red;funny@@, then I see this tiddler like this in the sidebar funny. You can see it in my picture about the popup-problem

[tw] Re: How to: Automatic setting field value if a tiddler has a special tag

2018-01-13 Thread Birthe C
Hi Surya, How would that change color in the sidebar? Birthe Den søndag den 14. januar 2018 kl. 00.39.38 UTC+1 skrev Surya: > > Hello, > > I'd like to have the field "caption" automatically set to a value, if a > tiddler is tagged with Ja. > > The value should be