This is a case where it would be helpful to know *why* you're doing what 
you're doing.

You're currently using a prefix of a field to turn into a variable which 
then gets used to find a field value. But you could just extract the field 
directly:

```
{{{ 
[<currentTiddler>fields[]prefix[myfield]nth[1]]:map[<..currentTiddler>get<currentTiddler>]
 
}}}
```

Where nth[1] can be incremented for each field value you need.
On Sunday, April 10, 2022 at 6:49:55 PM UTC-7 [email protected] wrote:

> The other variables come from other fields. I tried to write something 
> like this:
> ```
> <ul>
>   <$list filter="[<currentTiddler>fields[]prefix[PREFIX1]]" 
> variable="variable1">
>     <li><$transclude field=<<variable1>>/>
>       <$list filter="[<currentTiddler>fields[]prefix[PREFIX2]]" 
> variable="variable2">
>         <$transclude field=<<variable2>>/>
>         <$list filter="[<currentTiddler>fields[]prefix[PREFIX3]]" 
> variable="variable3">
>           <$transclude field=<<variable3>>/>
>           <$list filter="[<currentTiddler>fields[]prefix[PREFIX4]]" 
> variable="variable4">
>             <$transclude field=<<variable4>>/>     
>           </$list>
>         </$list> 
>       </$list>    
>     </li>
>   </$list>
> </ul>
> ```
> Variables 2, 3, and 4 are repeated each time the filters are used.
> On Friday, April 8, 2022 at 3:34:47 AM UTC-5 PMario wrote:
>
>> On Thursday, April 7, 2022 at 9:15:16 PM UTC+2 [email protected] wrote:
>> ... 
>>
>>> What I really would like to do is something like this:
>>> ```
>>> <ul>
>>>   <$list filter="[<currentTiddler>fields[]prefix[FIELDNAME]]" 
>>> variable="thisfield">
>>>     <li><$transclude field=<<thisfield>>/>
>>>     \variable 2
>>>     \variable 3
>>>     \variable 4 - also, one of these needs to be a link.
>>>
>>
>> Where should these variables come from? You can use $set, $let widget 
>> outside the UL or $list element  
>> -m
>>
>

-- 
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/d1ea86a5-55f8-415d-9d53-8ce5c447fc07n%40googlegroups.com.

Reply via email to