diff --git a/core/ui/PageTemplate/story.tid b/core/ui/PageTemplate/story.tid index 0654ba46f..796c60032 100644 --- a/core/ui/PageTemplate/story.tid +++ b/core/ui/PageTemplate/story.tid @@ -13,7 +13,7 @@ tags: $:/tags/PageTemplate -<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template="$:/core/ui/ViewTemplate" editTemplate="$:/core/ui/EditTemplate" storyview={{$:/view}} /> +<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template="$:/core/ui/ViewTemplate" editTemplate="$:/core/ui/EditTemplate" storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/>
diff --git a/editions/tw5.com/tiddlers/mechanisms/HistoryMechanism.tid b/editions/tw5.com/tiddlers/mechanisms/HistoryMechanism.tid index d7790550e..b5fdc8763 100644 --- a/editions/tw5.com/tiddlers/mechanisms/HistoryMechanism.tid +++ b/editions/tw5.com/tiddlers/mechanisms/HistoryMechanism.tid @@ -1,5 +1,5 @@ created: 20140213171818824 -modified: 20140516172236345 +modified: 20150207131000000 tags: Mechanisms title: HistoryMechanism type: text/vnd.tiddlywiki @@ -25,3 +25,11 @@ Which renders the same as the "Open" sidebar tab, with the addition of a tick ag <$button message="tm-close-tiddler" class="tc-btn-invisible tc-btn-mini">× <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<>>✓ + +!! Empty Story + +To display content when the story is empty, create $:/config/EmptyStoryMessage and enter the desired contents. The following would show the GettingStarted tiddler when all others are closed. + +``` +{{GettingStarted||$:/core/ui/ViewTemplate}} +``` \ No newline at end of file