Try replacing the field content with this instead:
<$text text={{{ [<currentRecord>fields[]prefix[ct-]] [<currentRecord>fields[]prefix[cect-]] :map[<currentRecord>get<currentTiddler>] +[sum[]] }}} />
Seems to work (for those tiddlers that actually have any matching fields.)
How I figured this out, in case it helps you with your own future troubleshooting:
- Your month template uses the table-dynamic macro, so I looked it up in Advanced Search → Shadows to find the tiddler where the macro was being defined.
- I got two results and found that the content of each cell is defined in the second,
$:/plugins/kookma/shiraz/templates/body/type
, which populates each non-header/footer table cell as follows:
\define showCell() <$transclude tiddler=<<currentRecord>> field=<<currentColumn>> mode="inline" />
<td>
<<showCell>>
</td>
- Here we can see that the field data is being pulled from the tiddler defined as
<<currentRecord>>
, NOT from <<currentTiddler>>
.
- I replaced the references to
<currentTiddler>
in the filtered transclusion with <currentRecord>
where appropriate, and that gave me the expected result.
So if you’re not using the field ct-sum except within the dynamic table, you could replace the content of each ct-sum field with the corrected version above. Alternately you can create a custom column template (Mohammad provides some guidance on how to do that here in the Shiraz tutorial) and put your text widget there, and then it won’t be dependent on the ct-sum field at all.
- Personally, I’d suggest the latter; it seems redundant to have a field containing an identical widget on potentially hundreds of tiddlers. I generally prefer to keep field data as simple as possible and do any formatting and/or filter manipulations within a view template.
Hope this helps!