Custom export format

77 views
Skip to first unread message

Bob Jansen

unread,
Oct 15, 2020, 1:47:58 AM10/15/20
to TiddlyWiki
I am trying to create a custom export format, as per the TW documentation. I have a tiddler with the tag $:/tags/Exporter and the following content.

<code>
\define renderContent()
{{{ $(exportFilter)$ ||$:/core/templates/plain-text-tiddler}}}
\end

Every so often, you will be able to upgrade your copy of TLSConsignment to take advantage of new features, bug fixes, etc. The upgrade will be provided by Dr. Bob Jansen with instructions of how to perform the upgrade.

You do not need to upgrade if you do not want to, it is entirely your own decision. But if you do not upgrade you may miss out of new features and bug fixes.

In most circumstances, you will just click the button below to start the upgrade process.

----
<$button>
<$set name="exportFilter" value="[title[Artworks]]" />
<<renderContent>>
<$set name="exportFilter" value="[title[Consignments]]" />
<<renderContent>>
<$set name="exportFilter" value="[title[Exhibitions]]" />
<<renderContent>>
<$set name="exportFilter" value="[title[Names]]" />
<<renderContent>>
<$set name="exportFilter" value="[title[Mark]]" />
<<renderContent>>
<$set name="exportFilter" value="[tag[Manual]]" />
<<renderContent>>
<$set name="exportFilter" value="[tag[Manual_Pages]]" />
<<renderContent>>
<$set name="exportFilter" value="[tag[Messages]]" />
<<renderContent>>
<$set name="exportFilter" value="[prefix[$:/TLS/]]" />
<<renderContent>>
Upgrade Now
</$button>

</code>

I press the button and nothing happens. I'm sure the issue is how to action the macro call but have no idea what is wrong. Anyone shed some light as to why?

bobj

TW Tones

unread,
Oct 15, 2020, 7:49:51 AM10/15/20
to TiddlyWiki
Bob
Yoh are closing the set widget befor you use the variable it sets. End the set lines with > then
after the render macro close them with </$set>

tonrs
Reply all
Reply to author
Forward
0 new messages