Exporting wikified text to csv

114 views
Skip to first unread message

Rob Jopling

unread,
Jul 31, 2020, 1:06:38 PM7/31/20
to TiddlyWiki
I note that when I export a selection of tiddlers to a CSV file it exports the text field as raw text.

Is there a way by which I can export the text field as wikified text?

I have played around with the wikifywidget but cannot work out to get round the obvious transclusion errors.

TW Tones

unread,
Jul 31, 2020, 7:09:18 PM7/31/20
to TiddlyWiki
Rob,

The solution could be quite subtle, could you share a minimal example of your code?, or ideally and example that demonstrates the problem on tiddlywiki.com or an empty.html?

With code unseen these are my strategies
  • Check each set of the process to see the results
  • Wikify at the last possible moment in where it is needed
  • Are you using the output parameter on the wikify, check and or set that
Regards
Tony

Robert Jopling

unread,
Aug 1, 2020, 2:24:19 AM8/1/20
to tiddl...@googlegroups.com
Thanks Tony

I now have an idea as to how to do this. I will codify my idea and I will get back to you.

Cheers

Rob

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/70dd2832-99b1-4246-b4b5-d6e409c5c968o%40googlegroups.com.

Rob Jopling

unread,
Aug 13, 2020, 12:22:48 PM8/13/20
to TiddlyWiki
Hi Tony

I did manage to solve my problem.

I created a button which selects the required tiddlers by tag, and then for each tiddler it copies the wikified content of the text field to a new field. Then when I export the tiddlers as a csv I have a column with the plain text as required.
Seems to work fine.

Thanks for your interest.

Rob

TW Tones

unread,
Aug 13, 2020, 7:24:55 PM8/13/20
to TiddlyWiki
Rob,

Great to hear and thanks for sharing back. Since this original post of yours, I have being playing further in this space myself.

Do share a code snipit when possible. 

Best wishes
Tones

Rob Jopling

unread,
Aug 14, 2020, 2:11:21 PM8/14/20
to TiddlyWiki
Tony

I will do that.

But how do you share a code snippet in a box like I have seen in many posts?

Rob Jopling

unread,
Aug 14, 2020, 4:30:25 PM8/14/20
to TiddlyWiki
Tony

This is the code that I used

This button will copy the contents of the text field of the filtered tiddlers to a field called wikified text. All wikitext characters are omitted and the text will be plain text.<br>


<$button>
click here
<$list filter="[tag[test]]">
<$wikify name=text1 text={{{ [{!!title}get[text]] }}}>
<$action-setfield $tiddler={{!!title}} $field="wikitext" $value=<<text1>> />
</
$wikify>
</$list>
</
$button>

I trust that it makes sense.

I was pleased that I got it to work as I am very new to coding although I have been using TW in a very basic way for many years.

Thanks for your help.

Rob
Reply all
Reply to author
Forward
0 new messages