Open in New Window Discussion

42 views
Skip to first unread message

TonyM

unread,
Jan 20, 2020, 3:54:36 PM1/20/20
to TiddlyWiki
Folks,

From this discussion re Example Empty Story message Tip we started discussing the "Open in New Window" and different results.

I and mohammad are interested in extending its use somewhat,

This is a new thread to focus on Open in New Window; a few key points
  • A Bug fix in 5.1.22 prerelease allows button Icons to be visible in open in new window
  • Open in new window only renders the text field (Desirable feature for printing Tiddlers content)
  • Open $:/core/ui/PageTemplate/story and open it in new window to see how multiple tiddlers with all viewtemplate elements can be seen
  • Open in a table of contents in Open in new window and the window acts as a remote control for the main tiddlywiki tab, click a title and it opens in the story (useful on multiple screens).
One thing to keep in mind is open in new window is only rendering the text field of the tiddler. I depend on this to print specific tiddler content to pdf as an example. We do not see the view template buttons etc. Perhaps it is this which is giving apparently inconsistent results? we could easily have alternate open in new window buttons that include extended elements. I created a Move to new window button, works the same as open in new window, but closes the tiddler in the story automatically.

More to follow in this discussion;


TonyM

unread,
Jan 20, 2020, 5:45:14 PM1/20/20
to TiddlyWiki
Folks,

If we place the following in a tiddler
{{TableOfContents||$:/core/ui/ViewTemplate}}
then open it in a new window we see we get the rest of the View Template elements
 
From Mohammads Test example here 
{{Test-New-Win||$:/core/ui/ViewTemplate}}
We get what I think Mohammad was thinking

However with the prerelease we see the "View Template buttons" however many are not relevant any more. The close button will close the tiddler if and only if it is in the story, and not close the new window.

If you look at $:/core/ui/Buttons/open-window and https://tiddlywiki.com/?user=test#WidgetMessage%3A%20tm-open-window we see we have plenty of opportunity to set the template; Window title and size and more.

Placing `<<dumpvariables>>` in a tiddler and opening it in a new window, allows us to inspect what we have access to inside the window.

Opening a tiddler containing the following in a new window is interesting.

{{MyTiddler||$:/core/ui/ViewTemplate}}
Careful you can overwrite a tiddler with this.


Regards
Tony
Reply all
Reply to author
Forward
0 new messages