In an old thread from last year on "Export each tiddler plugin", one of 
Eric's responses 
<https://groups.google.com/forum/#!searchin/tiddlywiki/sameday$20journal%7Csort:date/tiddlywiki/V33mvijcKQU/WvIdYPHXBAAJ>
 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 
<https://tiddlywiki.com/#%24%3A%2Fcore%2Fmacros%2Fexport> 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.


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0ab47cd7-f5ca-4c8c-a279-82b6133ab97b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to