1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 02:27:19 +00:00

Merge pull request #1471 from tobibeer/basic-empty-story-message

basic empty story message
This commit is contained in:
Jeremy Ruston 2015-02-07 13:12:01 +00:00
commit bb10e2b029
2 changed files with 10 additions and 2 deletions

View File

@ -13,7 +13,7 @@ tags: $:/tags/PageTemplate
</section>
<$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}}/>
<section class="story-frontdrop">

View File

@ -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">&times;</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>&#x2713;</$reveal></$link>
</$list>
!! 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}}
```