[TW5] How to quickly add?

83 views
Skip to first unread message

Nicholas Zufelt

unread,
Jan 22, 2016, 5:43:36 AM1/22/16
to TiddlyWiki
Apologies if this has been answered, I tried looking but couldn't find it.  I'm also a TW noob, so bear with me.

I have a main tiddler that I'm using as my personal library of tips for various coding languages, and so it actually only contains a tabbed list of other tidders, where each supporting tiddler is a single language.  I have all the tabs working and displaying nicely, but the problem is it's a bit cumbersome to add to one of these supporting tiddlers.  What I'd like to add is a couple of text fields at the bottom of each tiddler, as well as a "submit" button, that I put code in one field and a description in the other and it adds a new entry to the supporting tiddler (where the code is surrounded by backticks and goes into a table I've set up).  I could then go in later and organize it, but I find that I don't use it as much as I'd like to since it's so slow to add to (click on the supporting tiddler, click on edit, add the formatting, save and then close the supporting tiddler).  This has to be easy to do, right?

Thanks in advance!

BJ

unread,
Jan 22, 2016, 9:49:35 AM1/22/16
to TiddlyWiki
Hi Nicholas,

the way I would approach it would be to have each code snippet as a separate tiddler and use the list widget (along with a template) to construct your table of tips. Say you have a tiddler called pascal, then you could use the 'new here' button on this tiddler tool bar to create a new tiddler tagged with 'pascal', and put you tips sample code in a field and text (the tip) in the tiddler body, choose a name and save. In the pascal tiddler you would then put the list widget to pull in all the tiddlers tagged pascal (using the currentTiddler variable to obtain the tiddler title - here pascal and filter for tags) and transclude the tips (text and sample code) into a table.

all the best

BJ

Nicholas Zufelt

unread,
Jan 25, 2016, 6:57:12 AM1/25/16
to TiddlyWiki
Beautiful, thanks!
Reply all
Reply to author
Forward
0 new messages