Post script
If you have tiddlers that also contain content you want rendered in the
Open new window you can restore the transclude statement in $:/
core/templates/single.tiddler.window as follows. Both at once is fine as
long as your viewtemplate does not repeat content in the body - why would
it?
{{||$:/PSaT/WRRef/viewtemplate}}
<$transclude mode="block"/>
Regards
Tony
On Thursday, April 2, 2020 at 3:04:38 PM UTC+11, TonyM wrote:
>
> 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}}
>
> 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/6e3dd82f-adff-40b0-9420-7044ab69c1d1%40googlegroups.com.