How to print the permaview

123 views
Skip to first unread message

Jan

unread,
Dec 9, 2020, 10:57:49 AM12/9/20
to TiddlyWiki
Hi,
I would like to generate a qr-code which links to an entire story opened
inmy TW. I have difficulites to get the correct permaview into a field
to use it in the qr-macro.
Does anyone know the spell?

Best wishes and thanks for your help: Jan


TW Tones

unread,
Dec 9, 2020, 6:20:06 PM12/9/20
to TiddlyWiki
Jan,

The perm view is in fact a URL that opens every thing in the story river. So inside $:/StoryList the list field contains the list of tiddlers open in the story. and the currentTiddler


So tiddlers are address#currentTiddler:tiddler1 tiddler2 [[tiddler three]]
assuming %5B%5B is [[ %5D%5D is ]]

Then it needs the url format, then feed this text into the QR generator

Regards
Tones

Saq Imtiaz

unread,
Dec 9, 2020, 6:56:43 PM12/9/20
to TiddlyWiki
Assuming you want to generate this from the tiddlers open in the story you can try this filter:

[list[$:/StoryList]first[]encodeuricomponent[]] [{$:/StoryList!!list}encodeuricomponent[]] +[join[:]addprefix[#]addprefix{$:/info/url/full}]

The resultant URL should result in navigation to the first tiddler in the story as I assume you want the order in the story at that time. You can change that by modifying the first run in the above filter expression.


Jan

unread,
Dec 12, 2020, 11:08:50 AM12/12/20
to tiddl...@googlegroups.com
Hi Saq, hi Tones!
Saq your solution works great!
Sorry for not answering earlier...I could not get it to work at first because the join-opperator needed a newer version.
Having updated I can report success.
It is a button to call a modal with a QR code linking to the current Tiddler ... and after clicking the blue button to the entire story.

http://szen.io/tools/#%24%3A%2Fplugins%2FJJ%2FQR%2FShowlinkModal:%24%3A%2Fplugins%2FJJ%2FQR%2FShowlinkButton%20%24%3A%2Fplugins%2FJJ%2FQR%2FShowlinkModal

I still have to translate it so that it is easy to use for everyone.

Yours Jan
--
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/dadd5a01-e46c-4e93-baac-4ff4227cd4b4n%40googlegroups.com.

Saq Imtiaz

unread,
Dec 12, 2020, 11:51:55 AM12/12/20
to TiddlyWiki
Hi Jan,

Happy to hear it helped. I have to say, I was expecting you to post a QR code rather than a link ;)

Cheers,
Saq
Reply all
Reply to author
Forward
0 new messages