I found a solution

The Tiddler $:/core/templates/single.tiddler.window is used to render what 
is seen in the open new window.

The key is the line;
<$transclude mode="block"/>

I have discovered if you change this to
{{||$:/core/ui/ViewTemplate 
<file:///C:/Data/TW5/!Smart%20Documents/BlogToSelf.html#%24%3A%2Fcore%2Fui%2FViewTemplate>
}}

It will display it in the window as a Full Tiddler with the buttons not 
displaying correctly. The pre-release does display the buttons correctly.

However I also have a special view Template that responds according to an 
object-type field eg: $:/PSaT/WRRef/viewtemplate
So
{{||$:/PSaT/WRRef/viewtemplate}}
Renders everything which this template would

I see value in with creating new "Open in New Window" buttons with 
different templates or a selectable template(s), this could include 
different output types.

So Problem self solved, perhaps because not many tiddlywikians live 
around my +10/+11 timezone.

I hope the story here helps others in the future.

Regards
Tony


On Thursday, April 2, 2020 at 12:00:54 PM UTC+11, TonyM wrote:
>
> Folks,
>
> Unfortunately for me the Open in new window relies on a button that uses 
> message="tm-open-window" which is defined in 
> $:/core/modules/startup/windows.js 
> which is currently beyond my skill level. Especialy in such a system 
> intergrated function.
>
> Here is my research so far, but my solar power is failing
>
> * $:/core/ui/Buttons/open-window
> * [[WidgetMessage: tm-open-window]] with no template set
> * Mentioned in $:/core/modules/startup/windows.js
> ** Contains default template $:/core/templates/single.tiddler.window
> * Thus the template is $:/core/templates/single.tiddler.window
> **In which we see `<$importvariables filter="[[$:/core/ui/PageMacros]] 
> [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">`
> *The Full render process for a given tiddler from $:/core/ui/PageTemplate
> **Which uses To render each tiddler  $:/core/ui/PageTemplate/story 
> **Uses the $:/config/ui/ViewTemplate
> **
>
> I will be back
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1e31df40-22f5-4ac9-82a7-fb86aefafbb3%40googlegroups.com.

Reply via email to