I am trying to understand filter syntax and processing by trying out a simple filter, at least I think it should be simple filter.
_canonical_uri={{{ [{$:/TLS/incremental}addprefix[Images/CS]addsuffix[.]addsuffix[$:/TLS/storage_format]] }}}
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.
bobj