Automatically fill out tiddler

139 views
Skip to first unread message

Fred Minsana

unread,
Nov 11, 2017, 1:59:11 AM11/11/17
to TiddlyWiki
Hi there

I want to add a new journal tiddler every day, but would like each new tiddler to contain the content from another tiddler.

E.g. every day I can create a tiddler that contains:

Heading 1

Heading 2

Heading 3

and then I can just fill in extra information like this:

Heading 1
Text specific to that day
Heading 2
...
Heading 3
...

 
What is the best way to do this?

Thanks a lot for your time!

Mark S.

unread,
Nov 11, 2017, 11:03:25 AM11/11/17
to TiddlyWiki

TonyM

unread,
Nov 11, 2017, 5:51:02 PM11/11/17
to TiddlyWiki
Mark,

As far as I can see the link you provided does not provide templated text to each new tiddler. I am still not clear on the best way to make new tiddler/journal  templates to provide a good answer to Fred.

Personally I wold create a whole new new tiddler button using <<now>> to title it and a template text to populate its contents.

Of course the work around is to create a template tiddler and simply clone it when a new one is needed.

Regards
Tony

Mark S.

unread,
Nov 11, 2017, 7:23:16 PM11/11/17
to tiddl...@googlegroups.com
Ah, I see my faith in TW documentation goes unrewarded.

Here's what the directions should be like to include the body of the New Journal Tiddler:


To get your own custom Journal button, start by cloning the New Journal button.

Then create your own config tiddlers, eg:

  • $:/config/myNewTiddler/Tags and ...
  • $:/config/myNewTiddler/Title
  • $:/config/myNewTiddler/Text

Edit your custom button and "search and replace" the config tiddler names.

 

Change the following lines, near the end of the tiddler from

<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
<$set name="journalText" value={{$:/config/NewJournal/Text}}>
 

to

 
<$set name="journalTitleTemplate" value={{$:/config/myNewTiddler/Title}}>
<$set name="journalTags" value={{$:/config/myNewTiddler/Tags}}>
<$set name="journalText" value={{$:/config/myNewTiddler/Text}}>

if you want to see your config tiddlers in the sidebar use:

 
<$set name="journalTitleTemplate" value={{config/myNewTiddler/Title}}>
<$set name="journalTags" value={{config/myNewTiddler/Tags}}>
<$set name="journalText" value={{config/myNewTiddler/Text}}>


HTHMTP (Hope this helps more than previous)

-- Mark

Birthe C

unread,
Nov 11, 2017, 7:29:49 PM11/11/17
to TiddlyWiki
Why not do it from control panel info tab? Title, text and tag. That must be the easy way.


Birthe

Mark S.

unread,
Nov 11, 2017, 8:28:34 PM11/11/17
to TiddlyWiki
Well sure, if you want to do it the easy way ;-)
Reply all
Reply to author
Forward
0 new messages