Hi,

An idea for the packing/unpacking mechanism :using the getTiddlerAsJson 
function (in $:/core/modules/wiki.js).

var jsonString=this.wiki.getTiddlerAsJson(title);

<https://danielorodriguez.com/TW5-EncryptTiddlerPlugin/>
This function returns a JSON string of the fields of a tiddler.

You can do this for each related tiddler ant put the strings inside fields.

To unpack you only have to use JSON.Parse(JsonString) and then use the 
saveTiddler function to re-create the tiddler.

Thanks to DanieloRodriguez's Encrypt Tiddler Plugin where I discovered 
these functions working in a widget (
https://danielorodriguez.com/TW5-EncryptTiddlerPlugin/).

Regards

FrD


Le jeudi 9 août 2018 17:26:24 UTC+2, Mark S. a écrit :
>
> I haven't seen the comments plugin, so pardon me if this idea is 
> unoriginal. It occurs to me that you could have a "packer" button that 
> takes all tiddlers related to a current tiddler, and packs them into 
> fields. Then when you export the tiddler, all the supporting tiddlers go 
> with it. Later, an unpacker button would extract the fields.
>
> -- Mark
>
> On Thursday, August 9, 2018 at 7:26:17 AM UTC-7, Mohammad wrote:
>>
>> Hello Mark!
>>  Thank you, yes I thought the same to have a customized export button!
>> By the way I learned from comments pluging in pre-release 5.1.18 how I 
>> can have my note edit box in the view mode not in the edit mode.
>>
>> You asked to whom you want to export? It is good to export a slideshow 
>> with its all slides and notes as json file as archive, and distribute for 
>> example to students!
>> But as you said there is always problem to keep everything related with 
>> together!
>>
>> I will have a look at PMario bundler plugin!
>>
>> *Mohammad*
>>
>

-- 
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/bdfd5acb-993a-4700-bf38-d03f166c0fd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to