From e9ba7f3d709fecf4bd8c49195bbc25de89b870d4 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 14 Feb 2014 22:22:41 +0000 Subject: [PATCH] Add example of creating substories --- .../tiddlers/howtos/Creating SubStories.tid | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 editions/tw5.com/tiddlers/howtos/Creating SubStories.tid diff --git a/editions/tw5.com/tiddlers/howtos/Creating SubStories.tid b/editions/tw5.com/tiddlers/howtos/Creating SubStories.tid new file mode 100644 index 000000000..07d5f7475 --- /dev/null +++ b/editions/tw5.com/tiddlers/howtos/Creating SubStories.tid @@ -0,0 +1,41 @@ +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"> +
+! <$button message="tw-close-tiddler" class="btn-invisible">{{$:/core/images/close-button}} <$view field="title"/> + +<$transclude/> +
+ + + +``` + +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"> +
+! <$button message="tw-close-tiddler" class="btn-invisible">{{$:/core/images/close-button}} <$view field="title"/> + +<$transclude/> +
+ + +