This is being used as a parameter to a create_tiddler action.
What I am trying to achieve is to set the _canonical_uri field of a tiddler to ‘Images/CS’ + the value of the tiddler $:/TLS/incremental + ‘.’ + the contents of th e tiddler $:/TLS/storage_format
When I type this filter into the filter tester of the advanced search tab, it returns
_canonical_uri= Images/CS15.$:/TLS/storage_format
No matter what I try, I can not get the content of the $:/TLS/storage_format tiddler whilst it should return, in this case, pdf. So the hoped for result is _canonical_uri= Images/CS15.pdf
If I replace the last addsuffix by addsuffix[pdf] everything works a treat so the issue would not appear to be the filter syntax.
I can not find any examples showing how to do this.
All help appreciated especially if you can point to a tiddler in the documentation where this type of statement id explained.
@EricShulman thanks for that explanation. Will add it to my slowly increasing examples TW
Could your answer, which works a treat, not be included in the TW documentation page on Brackets (https://tiddlywiki.com/#Brackets)? Might make things more clear for us novices.
There is a important point when you are using filter, you need to use the filter syntax. You can’t use brackets as you do in WikiText, as @EricShulman has pointed. I think this documentation could be of help, because you can see how could use filter parameter/operand according to you needs.