Creating TiddlyWiki

49 views
Skip to first unread message

bgoetzmann

unread,
Mar 1, 2012, 8:10:33 AM3/1/12
to TiddlyWiki
Hello,

I'm really impressed by TiddlyWiki!
I would like use TiddlyWiki for creating documentation, so to be able
to create an initial HTML file with some tiddlers with labels. I think
here to a template approach.
Where can I find documentation on how the page is constructed? Or
perhaps, it exists an API to inject tiddlers?

Thank you for any help.

Bertrand ;-)

Måns

unread,
Mar 1, 2012, 12:26:18 PM3/1/12
to TiddlyWiki
Hi Bertrand

> I would like use TiddlyWiki for creating documentation, so to be able
> to create an initial HTML file with some tiddlers with labels. I think
> here to a template approach.
> Where can I find documentation on how the page is constructed?

http://tiddlywiki.org/#%5B%5BWhat%20Happens%20When%20A%20Tiddler%20Is%20Opened%3F%5D%5D

You have access to standard ViewTemplate and EditTemplate which are
shadow tiddlers and can be found in the more tab -> shadows in the
sidebartabs...


If you want to display different elements based on tags you have (at
least) two options:

1) Hide or show elements in a template by enclosing them in a
hidewhentagged or showwhentagged div - provided by HideWhenPlugin [1]
or
2) Open/use different custom templates - provided by
TaggedTemplateTweak [2]

[1] http://mptw.tiddlyspot.com/#HideWhenPlugin
[2] http://www.tiddlytools.com/#TaggedTemplateTweak

Cheers Måns Mårtensson

PMario

unread,
Mar 3, 2012, 11:20:12 AM3/3/12
to TiddlyWiki
Hi Bertrand,
How do you create your documentation? TW or external source?
Should your TW be editable for users afterwards, or is it readOnly?

Can you describe your usecase a bit closer?
-m

bgoetzmann

unread,
Mar 5, 2012, 4:30:00 PM3/5/12
to tiddl...@googlegroups.com
Thank you for your response; I wasn't very clear.

In fact I wanted use TW as some sort of documentation tool, by creating an initial HTML file with some tiddlers, for example with the use of a template and some code in order to generate an intitial HTML file.
I found something that goes in that sense here:  https://gist.github.com/745113 with the use of an XSLT file.
So I got my response: I can "inject" tiddlers in the tag div that has the id storeArea.

Now I ask me, how I can made the document read only.

Bertrand ;-)
Reply all
Reply to author
Forward
0 new messages