Micah,
I am not answering your question, but
I may recommend to have a look at
https://kookma.github.io/TW-Scripts/#syntaxI see some syntax error in your code.
--Mohammad
On Tuesday, March 10, 2020 at 7:35:23 PM UTC+3:30, Micah Maltsberger wrote:
I'm trying to include a list of all tiddlers which contain a variable field, sorted by the value of that field. ie, the tiddlers all have a field named "bob" with various numbers in that field. The name of the field is variable (defined in the "lwrcase" field of the current tiddler). The code below works perfectly - except that i can't use a variable to transclude the contents of the "bob" field. If i put in the name of the field (as below) it works fine.
Anybody have any idea? I assume it's going to be something with helper macros and whatnot but I can't seem to get it to work.
Thanks in advance!
<table>
<tr>
<th>number</th>
<th>Name</th>
<th>Description</th>
<th>Cost</th>
</tr>
<$list filter="[tag[spell]has{!!lwrcase}] +[nsort{!!lwrcase}]">
<tr>
<td><$transclude field="bob"/></td>
<td><$link to={{!!title}}><$transclude field="title"/></$link></td>
<td><$transclude field="description"/></td>
<td><$transclude field="cost"/></td>
</tr>
</$list>
</table>