[tw] Re: My Transclusion headache

2017-07-17 Thread PMario
Tobi Beer has some nice examples: http://tobibeer.github.io/tb5/#Templates:Templates%20%5B%5BConditional%20ViewTemplate%20Section%5D%5D about templates. -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and

[tw] Re: My Transclusion headache

2017-07-17 Thread PMario
Hi Tony, It's all relatively straight forward. .. I think I know, what causes your headaches. The fact, that you can't do $(var)${{!!field}} .. It needs to be $(var)$$(secondVar)$ ... to work The fact, that the list-widget modifies the currentTiddler by default. ... BUT there is a

[tw] Re: My Transclusion headache

2017-07-16 Thread PMario
On Monday, July 17, 2017 at 3:46:07 AM UTC+2, TonyM wrote: > > Where I start to have difficulties is when I try to use values in widgets, > macros etc... > I see. > My particular application uses a field in outer with multiple named > tiddlers (Like a tags field) > eg tiddlerlist: "Overview

[tw] Re: My Transclusion headache

2017-07-16 Thread TonyM
P.S. The line above <$importvariables filter="outer"> I want to have passed the name outer to inner Thanks Tony On Sunday, July 16, 2017 at 10:59:47 PM UTC+10, PMario wrote: > > > >> including macros etc... I want to pass a value to subsequent lists etc... >> that is not reevaluated in

[tw] Re: My Transclusion headache

2017-07-16 Thread TonyM
Thanks Mario, I will do my best to understand the consequences of the above. Where I start to have difficulties is when I try to use values in widgets, macros etc... I do not expect you to solve my problem but here is my chalenge. My particular application uses a field in outer with multiple

[tw] Re: My Transclusion headache

2017-07-16 Thread PMario
> including macros etc... I want to pass a value to subsequent lists etc... > that is not reevaluated in every other tiddler/macro/filter etc... > Once upon a time, there where no global macros. Macros could only live within the tiddler where they have been defined. Users felt great pain.

[tw] Re: My Transclusion headache

2017-07-16 Thread PMario
> > how can I construct a variable, that once set in the primary tiddler will > retain its value in all subsequently transcluded tiddlers, > In TW variables have a scope. ... That means they are only valid inside there scope. Simple test: If you copy paste the following snippet into an

[tw] Re: My Transclusion headache

2017-07-16 Thread PMario
Hi Tony, I think, you are mixing up fundamentally different things (fields, variables and macros), and that gives you a headache. I'll try to point you into the right directions. On Sunday, July 16, 2017 at 4:18:03 AM UTC+2, TonyM wrote: > Using field values in my primary tiddler, > Fields