mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 18:47:20 +00:00
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
created: 20140214215718317
|
|
modified: 20140214215745126
|
|
tags: howto
|
|
title: Creating SubStories
|
|
type: text/vnd.tiddlywiki
|
|
|
|
This example shows how to create a sub-story within a tiddler that is independent of the main story.
|
|
|
|
Here's the code:
|
|
|
|
```
|
|
<$navigator story="MySubStoryList" history="MySubHistoryList">
|
|
|
|
Click this link to get started: HelloThere
|
|
|
|
<$list filter="[list[MySubStoryList]]" history="MySubHistoryList">
|
|
<div>
|
|
|
|
! <$button message="tm-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
|
|
|
<$transclude/>
|
|
</div>
|
|
</$list>
|
|
|
|
</$navigator>
|
|
```
|
|
|
|
Note how you can open the HelloThere tiddler in the substory by clicking on the link below. Links within the substory open within the substory, and not in the main story.
|
|
|
|
<$navigator story="MySubStoryList" history="MySubHistoryList">
|
|
|
|
Click this link to get started: HelloThere
|
|
|
|
<$list filter="[list[MySubStoryList]]" history="MySubHistoryList">
|
|
<div>
|
|
|
|
! <$button message="tm-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
|
|
|
<$transclude/>
|
|
|
|
</div>
|
|
</$list>
|
|
|
|
</$navigator>
|