1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-02 12:19:11 +00:00
This commit is contained in:
Jermolene 2017-11-15 16:38:03 +00:00
commit 06fa483b7d

View File

@ -1,5 +1,5 @@
created: 20160424150551727 created: 20160424150551727
modified: 20161218024440693 modified: 20171114215846324
tags: [[Customise TiddlyWiki]] tags: [[Customise TiddlyWiki]]
title: Making a custom journal button title: Making a custom journal button
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
@ -9,7 +9,8 @@ To get your own ''//custom//'' Journal button, start by cloning the [[New Journa
Then create your own config tiddlers, eg: Then create your own config tiddlers, eg:
* ``$:/config/myNewTiddler/Tags`` and ... * ``$:/config/myNewTiddler/Tags`` and ...
* ``$:/config/myNewTiddler/Title`` * ``$:/config/myNewTiddler/Title`` and ...
* ``$:/config/myNewTiddler/Text``
Edit your custom button and "search and replace" the config tiddler names. Edit your custom button and "search and replace" the config tiddler names.
@ -20,6 +21,7 @@ from
``` ```
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}> <$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}> <$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
<$set name="journalText" value={{$:/config/NewJournal/Text}}>
``` ```
to to
@ -27,7 +29,7 @@ to
``` ```
<$set name="journalTitleTemplate" value={{$:/config/myNewTiddler/Title}}> <$set name="journalTitleTemplate" value={{$:/config/myNewTiddler/Title}}>
<$set name="journalTags" value={{$:/config/myNewTiddler/Tags}}> <$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: if you want to see your config tiddlers in the sidebar use:
@ -35,4 +37,5 @@ if you want to see your config tiddlers in the sidebar use:
``` ```
<$set name="journalTitleTemplate" value={{config/myNewTiddler/Title}}> <$set name="journalTitleTemplate" value={{config/myNewTiddler/Title}}>
<$set name="journalTags" value={{config/myNewTiddler/Tags}}> <$set name="journalTags" value={{config/myNewTiddler/Tags}}>
<$set name="journalText" value={{config/myNewTiddler/Text}}>
``` ```