Yes, you're right and your code works. But I never use a list widget 
without an explicit loop variable. As you wrote, it makes for more easy to 
decipher code. It is those kinds of implicit stuff that can make Perl code 
so short but so arcane. This is the origin of my aversion for them.

Le mercredi 21 avril 2021 à 14:35:21 UTC+2, Mohammad a écrit :

> I believe in
>
> <$list variable=journal filter="[tag[journal]]">
> <details>
>   <summary><$link to=<<journal>>/> <span><$transclude tiddler=<<journal>> 
> field=important mode=inline/></span></summary>
>   <$transclude tiddler=<<journal>> mode=block/>
> </details>
> </$list>
>
> You will get the same result using shortcut transclusion in double curly 
> brackets, if you remove the tiddler or leave it to be currentTiddler
>
> <$list filter="[tag[journal]]">
> <details>
>   <summary><$link/> <span>{{!!important}}</span></summary>
>   {{!!text}}
> </details>
> </$list>
>
> So, {{!!field}} will work as long as you refer correctly to currectTiddler!
> *Sidenote*: I myself prefer the first implementation (your solution) as 
> it is a semantic and clear one! In programming I myself prefer to write 
> codes that are maintainable and understandable and self explanatory!
>
>
> Best wishes
> Mohammad
>
>
> On Wed, Apr 21, 2021 at 3:15 PM Jean-Pierre Rivière <[email protected]> 
> wrote:
>
>> I have acollection of tiddlers that have a field name "importantt".
>>
>> I display this field with {{!!important}} within each of these tiddler.
>>
>> and I have an other tiddler that display a collection of those tiddler 
>> thanks to a list widget and a transclude widget. But when transcluded, the 
>> important field was nos shown.
>>
>> I have not set up a template for inclusion so far and probably won't.
>>
>> I read the old topic 
>> https://groups.google.com/g/tiddlywiki/c/7-8bDakJnw4/m/__rB5Q-6AwAJ and 
>> the indicated 
>> http://tobibeer.github.io/tb5/#Passing%20Parameters%20To%20A%20Transclusion 
>> and I got my solution.
>>
>> For in my list widget I use a "journal" variable to list each tiddler I 
>> want to show. And there is no such "journal" variable or macro in each of 
>> every targeted tiddlers.
>>
>> So now, in every of those tiddlers, I make my transclusion as
>>
>> <$transclude tiddler=<<journal>> field=important/>
>>
>> instead of
>>
>> {{!!important}}
>>
>> and this works OK when each of those tiller is on display by itself or 
>> transcluded by my library tiddler.
>>
>> to be complete:
>>
>> in "outer" tiddler:
>> <$list variable=journal filter="[tag[journal]]">
>> <details>
>>   <summary><$link to=<<journal>>/> <span><$transclude tiddler=<<journal>> 
>> field=important mode=inline/></span></summary>
>>   <$transclude tiddler=<<journal>> mode=block/>
>> </details>
>> </$list>
>>
>> in each inner tiddler (tagged "journal" and with an "important" field):
>> <$transclude tiddler=<<journal>> field=important/>
>>
>> Thank you to all PMario and Tobias Beer. I hope this post could help 
>> further people with a quicker access to a solution to a simple but frequent 
>> problem.
>>
>> -- 
>> 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/934e4e5a-9ef7-4be8-a9c3-f5c5f964b400n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/934e4e5a-9ef7-4be8-a9c3-f5c5f964b400n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bd9dfedb-fc93-456d-9732-62cc48ac8750n%40googlegroups.com.

Reply via email to