Hi,
I want to list certain fieldnames and fieldvalues within the body of the corresponding current tiddler. I am naming these fieldnames starting with ‘kp_’ for filtering which fields to show and want to remove this prefix when displayed in body of tiddler.
I thought of using removeprefix on <<fieldname>> , but could not figure out the syntax.
Thanks, KP
title: Nantucket
tags:
caption: Random Limerick
another-field: with a random value
kp_line1: There once was a man from Nantucket
kp_line2: Who kept all his cash in a bucket
kp_line3: But his daughter named Nan
kp_line4: Ran away with a man
kp_line5: And as for the bucket -- Nantucket
xxx-line6: Random other lines don't show up.
<table><tr><th>field</th><th>value</th></tr>
<$list filter="[<currentTiddler>fields[]prefix[kp_]]" variable=fieldname>
<$list filter="[<currentTiddler>get<fieldname>]" variable=field-value>
<tr><td><$text text={{{ [<fieldname>removeprefix[kp_]] }}} /></td><td><<field-value>></td></tr>
</$list>
</$list>
</table>