I have both of your tiddlers copied. And as expected the PowerSearch works on its own perfectly. I have also installed the Shiraz plugin and working on its own as well. Then I created another tiddler containing the overriding definitions which you’ve given here ( I had to change the macro call name to table-dynamic which I assume changed at a later date). I can see that PowerSearch is being called because the result table is shown but I don’t have PowerSearch UI. What might I be doing wrong?
It’s been more than 2 years since I wrote those instructions for “overriding definitions”.
As you noted, in that intervening time, the Shiraz macro name changed from “table-fd” to “table-dynamic”.
In addition, the underlying PowerSearch and edit-list code have also been extensively re-written and
re-factored several times, so some of those macro names and surrounding syntax have changed as well.
Instead of writing:
\import TiddlyTools/FilterGenerators/PowerSearch
\define doSearch_showresults()
<$macrocall $name=table-fd
filter=<<filter>> tblClass=""
fields="tbl-expand title fa fb fc caption tags"
stateTiddler=n
tblCaption="''Table 2. Dynamic table example''"/>
\end
\define getOptions() <!-- NO DISPLAY OPTIONS -->
<<setStyles>>
<<getInputs>>
<$vars
tids={{{ [<tidinput>get[text]] ~[[tiddlers]] }}}
pre={{{ [<preinput>get[text]] }}}
tag={{{ [<taginput>get[text]] }}}
field={{{ [<fieldinput>get[text]] ~[[title,text,tags]] }}}
flag={{{ [<flaginput>get[text]] ~[[words]] }}}
term={{{ [<terminput>get[text]] }}}
sort={{{ [<sortinput>get[text]] ~[[title]] }}}>
<<doSearch>>
</$vars>
Try this:
\import TiddlyTools/FilterGenerators/PowerSearch
\define doSearch_showresults()
<$macrocall $name=table-dynamic filter=<<filter>> tblClass=""
fields="tbl-expand title fa fb fc caption tags"
stateTiddler=n tblCaption="''Table 2. Dynamic table example''"/>
\end
<<styles>> <<inputs>>
<div style="clear:both;padding-top:0.5em;"/>
<<doSearch>>
Note: if you also omit the <div style="clear:both;padding-top:0.5em;"/>
, then the PowerSearch inputs and the Shiraz output table will appear side by side (as long as there’s enough room for the table)
enjoy,
-e