1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Add docs for making a custom New Journal button (#2664)

Includes change to 'Creating journal tiddlers' to link up to new Instructional tiddler.
This commit is contained in:
Marxsal 2016-12-19 03:27:50 -08:00 committed by Jeremy Ruston
parent 15c7d24eaa
commit 7d1e3f4c35
2 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,38 @@
created: 20160424150551727
modified: 20161218024440693
tags: [[Customise TiddlyWiki]]
title: Making a custom journal button
type: text/vnd.tiddlywiki
To get your own ''//custom//'' Journal button, start by cloning the [[New Journal|$:/core/ui/Buttons/new-journal]] button.
Then create your own config tiddlers, eg:
* ``$:/config/myNewTiddler/Tags`` and ...
* ``$:/config/myNewTiddler/Title``
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}}>
```
to
```
<$set name="journalTitleTemplate" value={{$:/config/myNewTiddler/Title}}>
<$set name="journalTags" value={{$:/config/myNewTiddler/Tags}}>
```
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}}>
```

View File

@ -1,5 +1,5 @@
created: 20141010093214683
modified: 20160610081833756
modified: 20161218024621209
tags: [[Working with TiddlyWiki]]
title: Creating journal tiddlers
type: text/vnd.tiddlywiki
@ -34,3 +34,7 @@ To configure how new journal entries are created, visit the ''Basics'' tab under
Hint: if you want to create a separate journal tiddler whenever you click ''new journal'' (even if you do this several times in the same day), you can include the clock time in the title format. Specify something like `YYYY-0MM-0DD at 0hhh0mm'0ss''` as the date format.
Another useful trick is to include `$(currentTiddler)$` somewhere in the title format. This means that if you click ''new journal here'' on several different tiddlers, the title of each of those tiddlers will form part of the name of the resulting journal entries.
! Making a custom new journal button
Visit the [[Making a custom journal button]] tiddler for instructions on how to make your own custom New Journal button