How to have a default text in a tiddler?

14 views
Skip to first unread message

Laurent

unread,
Jun 23, 2008, 3:29:03 AM6/23/08
to Tiddl...@googlegroups.com
Hello,

I'd like to change the "Type the text for 'New Tiddler'" displayed by
default when creating a new tiddler by my template.

I've played with EditTemplate, but did not achieve anything and I
don't think it is the right place to set up my text template.

Is it possible to edit this default text?
How?

Thank you for your help

--
-- Laurent

FND

unread,
Jun 23, 2008, 5:25:34 AM6/23/08
to Tiddl...@googlegroups.com
> I'd like to change the "Type the text for 'New Tiddler'" displayed by
> default when creating a new tiddler by my template.

If you're only concerned about the NewTiddler button, then you could
change that using the NewTiddler macro's text parameter:
http://www.tiddlywiki.org/wiki/NewTiddler_%28macro%29

If you want to extend this to (non-existing) tiddlers opened from wiki
links, you'll have to use a tiny plugin. Create a new tiddler, tag it
with "systemConfig", and add the following contents:
//{{{
config.views.wikified.defaultText = "Tiddler '%0' not found.";
//}}}
(The "%0" bit will be replaced with the respective tiddler title.)

HTH.


-- F.

Anthony Muscio

unread,
Jun 24, 2008, 3:29:38 AM6/24/08
to TiddlyWiki
If you want a realy advanced template management consider;
http://www.TiddlyTools.com/#TaggedTemplateTweak

Which allows you to also maintain different view and edit templates
which changes how and what appears in each tiddlers menus.

I have a different view template for a tiddler tagged .contact vs one
tagged .task

Be carefull with this if you are using MonkeyPirate plugins.

Then use the above posts NewTiddler macro's text parameter for the
textural content.

Laurent

unread,
Jul 4, 2008, 3:49:04 AM7/4/08
to Tiddl...@googlegroups.com
Hello,

I'm back to the topic after some times...

Thank you for your answers.

2008/6/23 FND <FN...@gmx.net>:


> If you're only concerned about the NewTiddler button, then you could
> change that using the NewTiddler macro's text parameter:
> http://www.tiddlywiki.org/wiki/NewTiddler_%28macro%29
>
> If you want to extend this to (non-existing) tiddlers opened from wiki
> links, you'll have to use a tiny plugin. Create a new tiddler, tag it
> with "systemConfig", and add the following contents:
> //{{{
> config.views.wikified.defaultText = "Tiddler '%0' not found.";
> //}}}
> (The "%0" bit will be replaced with the respective tiddler title.)

I want to replace the default text, for all new tiddlers, when created
from non-existing tiddlers.

So, I''ve tried the above, but it only changed the text displayed
before editing the new tiddler. On [edit] I still have "Type the text
for 'XXX'.", which is what I want to change.

My need is that simple and systematic. I would prefer not to use
complex template management as suggested by Anthony in another reply.

Is it possible?

--
-- Laurent

FND

unread,
Jul 4, 2008, 4:13:40 AM7/4/08
to Tiddl...@googlegroups.com
> I''ve tried the above, but it only changed the text displayed
> before editing the new tiddler. On [edit] I still have "Type the text
> for 'XXX'.", which is what I want to change.

In that case, instead of "config.views.wikified.defaultText" as
described above, use "config.views.editor.defaultText" - everything else
still applies.


-- F.

Laurent

unread,
Jul 25, 2008, 9:20:03 AM7/25/08
to Tiddl...@googlegroups.com
2008/7/4 FND <FN...@gmx.net>:

This is fine. Thank you.

--
-- Laurent

Reply all
Reply to author
Forward
0 new messages