In an old thread from last year on "Export each tiddler plugin", one of Eric's
responses contained this filter listing all tiddlers created or modifed on the date of the current tiddler:
<$list filter="[sameday:created{!!created}] [sameday:modified{!!created}]">
<li><$link><$text text=<<currentTiddler>>/></$link></li>
</$list>
I'd like to be able to export these tiddlers as a json file for further processing.
I'm working on modifying the
$:/core/macros/export by using Eric's filter in the macro, and expecting to put <<export-these-tiddlers>> into a new tiddler to generate the export file.
But I'm ending up with a blank json file.
Any thoughts? (I've highlighted the line of the macro that I modified).
Thanks,
//steve.
---------------------
\define exportButtonFilename(baseFilename)
$baseFilename$$(extension)$
\end
\define export-these-tiddlers(exportFilter:"[sameday:created{!!created}] [sameday:modified{!!created}]",lingoBase,baseFilename:"tiddlers")
<span class="tc-popup-keep"><$button popup=<<qualify "$:/state/popup/export">> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/export-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$lingoBase$Caption}}/></span>
</$list>
</$button></span><$reveal state=<<qualify "$:/state/popup/export">> type="popup" position="below" animate="yes">
<div class="tc-drop-down">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Exporter]]">
<$set name="extension" value={{!!extension}}>
<$button class="tc-btn-invisible">
<$action-sendmessage $message="tm-download-file" $param=<<currentTiddler>> exportFilter="""$exportFilter$""" filename=<<exportButtonFilename """$baseFilename$""">>/>
<$action-deletetiddler $tiddler=<<qualify "$:/state/popup/export">>/>
<$transclude field="description"/>
</$button>
</$set>
</$list>
</div>
</$reveal>
\end
but I end up with an empty file.