In this case remember that:

{{mytiddler}}

will transclude the text field of mytiddler

{{mytiddler!!myfield}}

will transclude the contents of the field "myfield" of "mytiddler".

And 

{{!!myfield}} will transclude the contents of the field "myfield" of the 
current tiddler.

Inside of a list widget, unless you specify a variable name, the current 
tiddler is the tiddler the list is currently on.

HTH





On Monday, May 11, 2020 at 1:31:22 PM UTC-7, Scott Sauyet wrote:
>
> Thank you very much.  That worked fine.
>
> I tried all sorts of variants that seemed vaguely likely, but not that 
> one.  Every time I get back into doing something significant with TW, I 
> have to relearn the model.  I know that it's fairly logical and 
> self-consistent, but I can't seem to keep it in my head.
>
>   -- Scott
>
>
>
> On Monday, May 11, 2020 at 2:38:39 PM UTC-4, Scott Sauyet wrote:
>>
>> I would like to grab some code for a codeblock from the text of another 
>> tiddler, all taking place inside a <$list>.  This is what I tried:
>>
>> <details>
>>   <summary>Helpers</summary>
>>   <$list filter="[tag[MyTag]sort[title]]">
>>     <$link><$transclude field="name" mode="block"/></$link>
>>     <$codeblock language="javascript"><$transclude field="text" 
>> mode="block"/></$codeblock>
>>   </$list>
>> </details>
>>
>>
>> But that doesn't properly get the text.  Just plain transcluding the 
>> field works fine:
>>
>>     <$transclude field="text" mode="block"/>
>>  
>>
>> And of course a codeblock that gets its data from another tiddler works 
>> fine:
>>
>> <details>
>>     <summary>Schema</summary>
>>     <$codeblock code={{MyTiddler}} language="json"/>
>> </details>
>>
>>
>> But my attempt to combine them didn't work.  Nor did several other 
>> syntaxes I guessed at.  Is there a good way to do this?
>>
>>   -- Scott
>>
>>
>>

-- 
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/c94fe296-9c7f-4f2e-8c1c-a775d9eeb31f%40googlegroups.com.

Reply via email to