Hi Tony,

I think you would have to hack the parser if you wanted the field and 
tiddler name to be available.

But you can fake it now, if you're willing to forego !!

Make a tiddler called "test" (must be called test or recursion error will 
occur). Paste in:

<$list filter="[<currentTiddler>] -[[test]] -[[Draft of 'test']]">
<$set name=mytid filter="[<currentTiddler>split[--]]" select=0 >
<$set name=myfield filter="[<currentTiddler>split[--]]" select=1 >
<$tiddler tiddler=<<mytid>>>
<$set name=test field=<<myfield>> tiddler=<<mytid>> >
I see <<test>>.
</$set>
</$tiddler>
</$set>
</$set>
</$list>

Now you can use syntax like {{mytiddler--myfield||test}}

-- was used because !! is already grabbed by the parser.

Of course, at this point you might as well use a macro.



On Monday, October 21, 2019 at 4:58:19 AM UTC-7, TonyM wrote:
>
> Mario
>
> thanks for the feedback. I am actually working on the button actions 
> hackability we have discussed elsewhere. There seems a Great way to combine 
> both our ideas.
>
> With your answer above Does that mean I must know the fieldname and set it 
> to a variable, so that I can access the variable inside the template?
>
> I was wondering if template was transcluded by a random transclusion e.g. 
> {{name!!field||template}} if we can extract the "field". Or will it only 
> transclude name!!field?
>
> I ask because if I used {{name||template}}, inside the template the 
> currentTiddler=name, so I can get the name, I am wondering about getting 
> the "field".
>
> Regards
> Tony
>
>

-- 
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/ab04df2d-0ba6-46b3-bb43-78332963e85c%40googlegroups.com.

Reply via email to