[tw5] Re: Setting the domain for relative addresses

2020-06-04 Thread TonyM
The following answers my own Question

See https://www.w3schools.com/html/html_head.asp

The HTML  Element

The  element specifies the base URL and base target for all relative 
URLs in a page:
Example
https://www.w3schools.com/images/; target="_blank">
Example,


   - Export a tiddler as static html from tiddlywiki.com eg filter operators
   - Edit the html file, eg with notepad++ 
   - Add after the `` tag

https://tiddlywiki.com; target="tiddlywiki.com">
save

Now open the saved static html in your browser. You have a quick load 
single tiddler, local html, with all the filter operators listed
However if you click on any link it will open the tiddler on tiddlywiki.com 
in the tab/window named target="tiddlywiki.com",

Every time you click a link it will open in the same tab. keeping your 
browser tabs from proliferating.

Regards
Tony


On Wednesday, June 3, 2020 at 7:04:35 PM UTC+10, TonyM wrote:
>
> Folks,
>
> If you export a html and it contains relative addresses if opened from 
> another location they are all wrong.
>
> There is a way to set the html or document root, in the html file, so all 
> links become relative to that, ie below that address.
>
> However for the life of me I cant google it with the correct terminology.
>
> Can anyone help? Please
>
> Why?
>
>- I realised with the internals plugin you get a raw html preview, 
>this can be used to generate a snapshot of the generated html, ie a 
>snapshot of the rendered tiddler, 
>- you can export this to a static html, all I need to do it to add 
>back the domain path from which all links will be relative
>- By leveraging the same mechanisms of the internals plugin I hope to 
>develop in wiki snapshots, and exportable html that links back to the 
>source wiki.
>
> Thanks in advance
>  
>
> Tony
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/20a383a4-c790-491b-851a-470b89c5b3efo%40googlegroups.com.


[tw5] Re: Setting the domain for relative addresses

2020-06-03 Thread TonyM
Bump

He says desperately to continue building a snapshot utility.

Regards
Tony


On Wednesday, June 3, 2020 at 7:04:35 PM UTC+10, TonyM wrote:
>
> Folks,
>
> If you export a html and it contains relative addresses if opened from 
> another location they are all wrong.
>
> There is a way to set the html or document root, in the html file, so all 
> links become relative to that, ie below that address.
>
> However for the life of me I cant google it with the correct terminology.
>
> Can anyone help? Please
>
> Why?
>
>- I realised with the internals plugin you get a raw html preview, 
>this can be used to generate a snapshot of the generated html, ie a 
>snapshot of the rendered tiddler, 
>- you can export this to a static html, all I need to do it to add 
>back the domain path from which all links will be relative
>- By leveraging the same mechanisms of the internals plugin I hope to 
>develop in wiki snapshots, and exportable html that links back to the 
>source wiki.
>
> Thanks in advance
>  
>
> Tony
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ede9c8d0-d205-4e25-aa01-934384cccbeb%40googlegroups.com.