mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 18:00:26 +00:00
Introduce template for single tiddler windows
Lets us include global macros etc.
This commit is contained in:
parent
41d5031279
commit
fdeb8a925f
@ -24,7 +24,7 @@ exports.startup = function() {
|
|||||||
var refreshHandler,
|
var refreshHandler,
|
||||||
title = event.param || event.tiddlerTitle,
|
title = event.param || event.tiddlerTitle,
|
||||||
paramObject = event.paramObject || {},
|
paramObject = event.paramObject || {},
|
||||||
template = paramObject.template || "$:/core/ui/ViewTemplate/body",
|
template = paramObject.template || "$:/core/templates/single.tiddler.window",
|
||||||
width = paramObject.width || "700",
|
width = paramObject.width || "700",
|
||||||
height = paramObject.height || "600";
|
height = paramObject.height || "600";
|
||||||
// Open the window
|
// Open the window
|
||||||
|
32
core/templates/single.tiddler.window.tid
Normal file
32
core/templates/single.tiddler.window.tid
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
title: $:/core/templates/single.tiddler.window
|
||||||
|
|
||||||
|
<$set name="themeTitle" value={{$:/view}}>
|
||||||
|
|
||||||
|
<$set name="tempCurrentTiddler" value=<<currentTiddler>>>
|
||||||
|
|
||||||
|
<$set name="currentTiddler" value={{$:/language}}>
|
||||||
|
|
||||||
|
<$set name="languageTitle" value={{!!name}}>
|
||||||
|
|
||||||
|
<$set name="currentTiddler" value=<<tempCurrentTiddler>>>
|
||||||
|
|
||||||
|
<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">
|
||||||
|
|
||||||
|
<$navigator story="$:/StoryList" history="$:/HistoryList">
|
||||||
|
|
||||||
|
<$transclude mode="block"/>
|
||||||
|
|
||||||
|
</$navigator>
|
||||||
|
|
||||||
|
</$importvariables>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user