Static Export from Single File - Choose Top Post

50 views
Skip to first unread message

Michael LeSauvage

unread,
Jun 22, 2015, 6:34:54 PM6/22/15
to tiddl...@googlegroups.com
I feel this won't be easy.

I'm using the single file to make my Wiki.  I need to send it to some people who can't use Javascript, so I am doing a static export.  The default open post has all the relevant links to tiddles that would lead people around the Wiki - but the sort order is alphabetical.

While I can edit the HTML to move the default open tiddle to the top of the output HTML, is there any way to get this done automatically?  Am I missing a system tag that would result in a particular tiddle appearing first?


Mike

Jeremy Ruston

unread,
Jun 25, 2015, 11:58:19 AM6/25/15
to TiddlyWiki
Hi Mike

The easiest way to fix this is to create a custom "page export" button that uses a custom sort order.

Create a new tiddler called $:/my-page-export with the tag $:/tags/PageControls. Add a description field containing "my custom export". Add the following content to the text field:

<$macrocall $name="exportButton" exportFilter="HelloThere GettingStarted [!is[system]!title[HelloThere]!title[GettingStarted]sort[title]] " lingoBase="$:/language/Buttons/ExportPage/"/>

In the example, HelloThere and GettingStarted will appear at the top, followed by the remainder in alphabetical order. You'll see that each tiddler name needs to be repeated in the filter.

Best wishes

Jeremy.



--
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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/88be4c16-cc89-4aef-abca-4b02ea2907d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com
Reply all
Reply to author
Forward
0 new messages