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:
commit
bb10e2b029
@ -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">
|
||||
|
||||
|
@ -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">×</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>✓</$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}}
|
||||
```
|
Loading…
Reference in New Issue
Block a user