Default text and tags for new tiddlers

705 views
Skip to first unread message

Robert Jopling

unread,
Jun 29, 2020, 3:56:19 PM6/29/20
to TiddlyWiki
Please forgive me me if this has been answered before but

How do you add default text and tags to all new tiddlers?

TW Tones

unread,
Jun 29, 2020, 8:55:48 PM6/29/20
to TiddlyWiki
Robert,

In Control Panel > Info > basics you can set the default Text for new journal tiddlers but these are a special type of tiddler, a journal.

However may I respectfully suggest there is a better way to do things than plump up every tiddler you create with text. 

We can make a custom new tiddler button that uses default text or a template if you want, however I think it better to move such things into the viewTemplate and have it display according to particular conditions, so you can have more than one tiddler type and content. Also why store reoccurring text?

Remember there are multiple ways to create a tiddlers, so rather than make every way create a custom tiddler confirm to you requirement why not make a button to generate a custom tiddler when needed?

A Cheats approach it to just clone a default tiddler pre-configured the way you want, or make a button just for your custom tiddlers, the other is to make new from template buttons.

There are even better ways but I wont complicate matters.

Perhaps you could explain why you wish to do this? and I can share a better way.

Regards
Tony

Riz

unread,
Jun 29, 2020, 10:45:00 PM6/29/20
to TiddlyWiki
1. Create one Tiddler with your required tags and text. Let us say this Tiddler is named "mytiddler"
2. Go to advanced search>shadows tab and search for Tiddler named "$:/core/ui/Actions/new-tiddler".
3. Change the text in "$:/core/ui/Actions/new-tiddler" to the following

<$action-sendmessage $message="tm-new-tiddler" $param="mytiddler"/>

Linda B

unread,
Nov 27, 2020, 12:00:27 PM11/27/20
to TiddlyWiki
I’ve tried the instructions on the tiddlywiki.com website for “Making a custom Journal button”. I’ve managed to create a Journal-type tiddler with the same format of title, no custom text, and a different tag. This template is called NewAnomaly.

Now in my Table of Contents and List-Links macros, the $:/config/NewAnomaly/Tags tiddler itself is listed. (This also sometimes happens with Journal tiddlers in the basic TOC macro.)

What change do I need to make to these macros so that that shadow tiddler doesn’t show up in the list? I have Googled for hours and can’t make sense of it.

I’m using Quine 2 for iOS on an ipad. I don’t know whether the container makes a difference in this problem, so I’m starting with this forum in the hopes that someone can rescue me.

Thank you,

-Linda Bayley

BurningTreeC

unread,
Nov 27, 2020, 12:27:25 PM11/27/20
to TiddlyWiki
Hi Linda, this is a Bug in the tiddlywiki version 5.1.22 which will be solved with the upcoming version 5.1.23

I cannot recommend upgrading to the current prerelease now, but the 5.1.23 release shouldn't be that far away. Sorry that I don't have a better solution for you right now :(

all the best, BTC

Linda Bayley

unread,
Nov 27, 2020, 3:19:55 PM11/27/20
to tiddl...@googlegroups.com
BTC,

I’m so relieved to learn this is a bug! Thanks for your quick reply.

-Linda B.


On Nov 27, 2020, at 12:27 PM, BurningTreeC <hypnotize...@gmail.com> wrote:

Hi Linda, this is a Bug in the tiddlywiki version 5.1.22 which will be solved with the upcoming version 5.1.23
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/sQr3OJwnj8I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3d38823e-f84a-45ac-a0d6-43edd224a1c2n%40googlegroups.com.

Max Rozeman

unread,
Apr 29, 2021, 4:20:18 AM4/29/21
to TiddlyWiki
I have followed the instructions found on this message board to automatically add text from "mytiddler" to new tiddlers, and it works correctly only when I use the "Create a new tiddler" button on the page toolbar. When I use the button on the tiddler View toolbar: "Create a new tiddler tagged with this one", the new tiddler is blank. How can I set up the button: "Create a new tiddler tagged with this one" to add the text from "mytiddler" to all new tiddlers created with that button?

PMario

unread,
Apr 29, 2021, 7:13:37 AM4/29/21
to TiddlyWiki
Hi Max,

You can save the attachment and then drag&drop import it. It will create a new NewHere (Custom) button, that will use a template to create the new tiddler.

The attachment contains:
  1. $:/config/NewTiddler/Template/Name
  2. $:/config/NewTiddler/Template
  3. $:/core/ui/Buttons/new-here-using-template
1) can be used to switch between different templates
2) is the template tiddler.
3) is the new button

If you want to see them in the right sidebar, you'll need to remove the $ from the name AND the code.

have fun!
mario

NewHere-using-a-template.json

Max Rozeman

unread,
Apr 30, 2021, 9:52:28 PM4/30/21
to TiddlyWiki
Thank you Mario! That is very helpful information. A custom button is even better than what I was hoping for.

Max
Reply all
Reply to author
Forward
0 new messages