Create a link to static tw.com showing arbitrary tiddler combos?

130 views
Skip to first unread message

Mat

unread,
Feb 12, 2020, 3:38:25 PM2/12/20
to TiddlyWiki
TW enables creating static wikis and we have the examples with all tiddlers statically open and a static with only a few tiddlers open (the default tids) and there's the single static for each tid. Can I create a permalink - also to tiddlywiki.com - to show a few static tiddlers of my chosing?

<:-)

Jeremy Ruston

unread,
Feb 13, 2020, 11:52:02 AM2/13/20
to TiddlyWiki
Hi Mat

On 12 Feb 2020, at 20:38, Mat <matia...@gmail.com> wrote:

TW enables creating static wikis and we have the examples with all tiddlers statically open and a static with only a few tiddlers open (the default tids) and there's the single static for each tid. Can I create a permalink - also to tiddlywiki.com - to show a few static tiddlers of my chosing?

That would only be possible if we pre-prepared a static HTML file for each of the possible combinations of tiddlers you might want to display, which would be impractical with more than a very small number of tiddlers

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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/eb1b23bf-d1f3-4c08-b9b3-050d1a4e9326%40googlegroups.com.

Mat

unread,
Feb 13, 2020, 12:32:29 PM2/13/20
to TiddlyWiki
Thanks, that's what I suspected. However, the particularity of my need might change the premise: What I want is a static page per filter operator doc that shows the filter operator doc and its associated example tiddler. Does this change anything? Maybe the predictable title of the example tiddler makes it possible to automatically...?

My reason for asking is that I'm making a thing for the community that I strongly expect will become pretty popular. The need to access the filter op doc + example is a connected part to this thing and while it would be possible to e.g load the two static tiddlers separately or as one dynamic wiki showing both... it makes much more sense with one slick targeted loading.

<:-)

TonyM

unread,
Feb 17, 2020, 2:12:56 AM2/17/20
to TiddlyWiki
Mat,

I assume you are aware of the published versions of static tiddlywiki tiddlers;

For example The Originals of the all operator

The static versions

You could add these to one wiki, together using the html object, or an iframe and perhaps other methods.
<object width=100% height="1200px" data="https://tiddlywiki.com/static/all%2520Operator.html"></object>
<object width=100% height="1300px" data="https://tiddlywiki.com/static/all%2520Operator%2520(Examples).html"></object>

Regards
Tony

Mat

unread,
Feb 17, 2020, 3:16:25 AM2/17/20
to TiddlyWiki
TonyM wrote:

I assume you are aware of the published versions of static tiddlywiki tiddlers;

Yes, I posted those links in the first post in this thread but thanks anyway.

...but as I now write I'm beginning to think maybe it's better with two separate iframes than a single one showing both tids, since iframes can have fixed height so it would be easy to scroll to access the iframe beneath it. 

So I'm "closing" this thread now.

<:-)

Jeremy Ruston

unread,
Feb 17, 2020, 8:40:03 AM2/17/20
to tiddl...@googlegroups.com
Hi Mat

I think there might be two problems here:

* The widget examples are currently displayed as a separate tiddler from the widget docs. This could be fixed by transcluding the examples automatically
* The widget examples use an interactive “try it” button which doesn’t work in the static rendering. This could be fixed by providing an alternative implementation of the underlying macro when rendering to a static template

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.

Mat

unread,
Feb 17, 2020, 1:52:30 PM2/17/20
to TiddlyWiki
Jeremy Ruston wrote:
* The widget examples are currently displayed as a separate tiddler from the widget docs. This could be fixed by transcluding the examples automatically

I was actually referring to filter operator docs. For widgets the info tiddler and the examples are actually already in a single tiddler. But, yeah, it would be desirable to be able to present any doc along with its examples in one tiddler. It would also make sense to make this presentation consistent in all docs.
 
* The widget examples use an interactive “try it” button which doesn’t work in the static rendering. This could be fixed by providing an alternative implementation of the underlying macro when rendering to a static template

Making that part usable of static tids is definitely desirable. BTW, seemingly active elements that cannot be used in static should not have the mouse pointer changed (e.g tabs).

But, I'm hesitant to make a gh request until after I've released what I'm building and people will see if it any change is justified so I'll let things be for now.

Thanks.

<:-)

TonyM

unread,
Feb 17, 2020, 6:57:59 PM2/17/20
to TiddlyWiki
Mat,

Did you try my object tag code above, I thought this would be what you need?

Also one could transclude more than one tiddler in a third tiddler and export that as static HTML.

Regards
Tony

Mat

unread,
Feb 18, 2020, 1:34:26 AM2/18/20
to TiddlyWiki
TonyM wrote:
Did you try my object tag code above, I thought this would be what you need?

Yeah, this is what I have but with iframes. Thanks.

<:-)
Reply all
Reply to author
Forward
0 new messages