The getTiddlerText method of a TiddlyWiki object returns the source code of a tiddler. It takes two parameters:
  • the title of the tiddler
  • the string to return if the tiddler does not exist (by default, the null value — not an empty string)
For example, to get the text of this tiddler do the following
store.getTiddlerText('getTiddlerText');
// if it doesn't exist null will be returned
store.getTiddlerText('getTiddlerText', 'Nothing there');
// if it doesn't exist 'Nothing there' will be returned

If a tiddler is not defined by the author but a shadow tiddler exists, its source code is returned instead. If the tiddler doesn't exist, then the second parameter passed is returned.

Also see Tiddler Heading Transclusion
bag
tiddlywikidev_public
created
Tue, 30 Nov 2010 17:28:16 GMT
creator
colmbritton
modified
Wed, 02 Nov 2011 10:45:17 GMT
modifier
jon
tags
common
method
store
theme
TWDocTheme