<$button to="Good Tumblr" class="tab_button">Good<<set_timefields>>
<$set name="goods" filter="[tag[tumblr]!year{Sandbox_Retrieve!!year}] [tag[tumblr]year{Sandbox_Retrieve!!year}!month{Sandbox_Retrieve!!month}]+[category[good]!prefix[Template]sort[modified]!has[format]!has[improve]limit[5]]">
<$action-setfield $tiddler="Sandbox_Retrieve" $field="goods" $value=<<goods>> />
</$set>
</$button>Can you selectively show these buttons only if some other condition is true on each tiddler such as a specific tag. To do this place a tiddler in the view template with the viewtemplate tag and test for the specific tag 1st.
You could even add a checkbox to toggle the specific tag only when needed?
Best of luck
The Australian follow the sun community member.
Regards
Tony
<$select tiddler="Sandbox_Retrieve" field="current_mode"><option>add</option><option>good</option><option>bad</option><option>new</option><option>reverse</option></$select>
<$reveal state={{!!Sandbox_Retrieve!!current_mode}} type="match" text="good"><$button to="Good Tumblr" class="tab_button">Good<<set_timefields>>
<$set name="goods" filter="[tag[tumblr]!year{Sandbox_Retrieve!!year}] [tag[tumblr]year{Sandbox_Retrieve!!year}!month{Sandbox_Retrieve!!month}]+[category[good]!prefix[Template]sort[modified]!has[format]!has[improve]limit[5]]">
<$action-setfield $tiddler="Sandbox_Retrieve" $field="goods" $value=<<goods>> />
</$set>
</$button></$reveal><$reveal state={{!!Sandbox_Retrieve!!current_mode}} type="match" text="good">
For whatever reason this isn't working. I think I've got something wrong with the reveal widget but I'm not sure what.
<$reveal state="Sandbox_Retrieve!!current_mode" type="match" text="good">
That's helped to a degree, but I'm wondering if I could modify the code somehow to prevent the filter from being evaluated until the button is pressed?
<$button to="Good Tumblr" set="Sandbox_Retrieve!!calcfilter" setTo="show" class="tab_button">Good
<<set_timefields>>
<$reveal state="Sandbox_Retrieve!!calcfilter" type="match" text="show">
<$set name="goods" filter="[tag[tumblr]!year{Sandbox_Retrieve!!year}] [tag[tumblr]year{Sandbox_Retrieve!!year}!month{Sandbox_Retrieve!!month}]+[category[good]!prefix[Template]sort[modified]!has[format]!has[improve]limit[5]]">
<$action-setfield $tiddler="Sandbox_Retrieve" $field="goods" $value=<<goods>> />
</$set>
</$reveal>
</$button>
/define some_macro()
<<set_timefields>>
<$set ..... >
<$action-setfield .....>
/end
<$button actions=<<some_macro>> to="destination" class="blah">
Button Title
</$button>