mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
ffd9df670d
In 5.0.12-beta, if you change the current language setting then the current sidebar tab setting is lost. This was because the qualified title generated for the tabs was incorporating the current language title, by virtue of a trick used in the PageTemplate to set the “languageTitle” variable to a field of the current language plugin. This trick left the current tiddler set to the current language, and this current tiddler was still in force for the transclusion of the page template segments.
40 lines
649 B
Plaintext
40 lines
649 B
Plaintext
title: $:/core/ui/PageTemplate
|
|
|
|
\define containerClasses()
|
|
tw-page-container tw-page-view-$(themeTitle)$ tw-language-$(languageTitle)$
|
|
\end
|
|
|
|
<$set name="themeTitle" value={{$:/view}}>
|
|
|
|
<$set name="currentTiddler" value={{$:/language}}>
|
|
|
|
<$set name="languageTitle" value={{!!name}}>
|
|
|
|
<$set name="currentTiddler" value="">
|
|
|
|
<div class=<<containerClasses>>>
|
|
|
|
<$navigator story="$:/StoryList" history="$:/HistoryList">
|
|
|
|
<$dropzone>
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]" variable="listItem">
|
|
|
|
<$transclude tiddler=<<listItem>>/>
|
|
|
|
</$list>
|
|
|
|
</$dropzone>
|
|
|
|
</$navigator>
|
|
|
|
</div>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|