mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 10:37:20 +00:00
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
|
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}}>
|
||
|
```
|