I’ve built a template applied on all pages tagged with author
to gather their books in a Shiraz Dynamic Table.
I’m extracting the author
from the page in a variable <cauthor>
(current author).
I’ve added a search field in the dynamic table as per Shiraz’s relevant tutorial.
I’ve tried adding the <cauthor>
value in the paths used to avoid crossing the streams give each Author page an independent search state, but it didn’t work. Without my failed hack below, all open Author tiddlers share the same search terms.
I guess it’s a usual case of wrong use of brackets? As I see it in the More → Explorer sidebar, <cauthor>
is interpreted literally and becomes a static part of the resulting path.
<$list filter="[all[current]tag[author]]">
<$set name="cauthor" value={{!!title}}>
!!! Works by ''<<cauthor>>''
Filter and search in table
<$edit-text
tiddler="$:/temp/dtable/<cauthor>/search"
filed=text
tag=input
default="" />
<$button
set="$:/temp/dtable/<cauthor>/search"
setTo=""
tooltip="clear searchbox">❌</$button>
<<table-dynamic
filter: "[contains:author<cauthor>search{$:/temp/dtable/<cauthor>/search}]"
fields: "tbl-expand title tags"
stateTiddler: ""
editButton: "yes"
pagination: "yes">>
</$set>
</$list>