Cusomise "The tiddler 'foo' doesn't yet exist. Double-click to create it"

17 views
Skip to first unread message

Alex Hough

unread,
Jan 10, 2008, 9:11:35 AM1/10/08
to Tiddl...@googlegroups.com
Hello TW people,

I would like to change the message in an empty Tiddler:
I am doing a TW on values and it is one that I want to share and show people. One value is 'Achievement': when it has not been tagged as Always important , sometimes important , rarely important or never important the poor viewer is going to get the message:


The tiddler 'Achievement' doesn't yet exist. Double-click to create it

It is somewhat of a negative message.

I would like to change it to some thing like
"You have not addressed 'achievement' in this exercise yet. Please double click and decide how you prioritise this value"

Is this possible by changing tiddlers in the normal way? What is the name of this message?


Alex

Eric Shulman

unread,
Jan 10, 2008, 9:39:08 AM1/10/08
to TiddlyWiki
> I would like to change the message in an empty Tiddler:

> "You have not addressed 'achievement' in this exercise yet. Please double
> click and decide how you prioritise this value"


Put the following line in a tiddler (e.g., [[ConfigTweaks]]), and tag
it with "systemConfig"... after save-and-reload, the new text will be
used.
--------------------
config.views.wikified.defaultText="You have not addressed '%0' in this
exercise yet. Please double-click and decide how you prioritise this
value";
--------------------
Note: %0 is automatically replaced with the tiddler name.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Alex Hough

unread,
Jan 10, 2008, 9:57:51 AM1/10/08
to Tiddl...@googlegroups.com
Hi Eric,

Thanks for the help. There seems to be an error. when re-load I get

"Error: SyntaxError: unterminated string literal"

in the plug ins manager



Alex

FND

unread,
Jan 10, 2008, 9:59:08 AM1/10/08
to Tiddl...@googlegroups.com
> Thanks for the help. There seems to be an error. when re-load I get
> "Error: SyntaxError: unterminated string literal"

Google Groups automatically inserts line breaks. Make sure Eric's code
is all on one line.

HTH.


-- F:

Eric Shulman

unread,
Jan 10, 2008, 10:00:23 AM1/10/08
to TiddlyWiki
> Thanks for the help. There seems to be an error. when re-load I get
>
> "Error: SyntaxError: unterminated string literal"
>
> in the plug ins manager

GoogleGroups adds newlines where they don't belong... the following is
supposed to be all ONE LINE:
--------------------
config.views.wikified.defaultText="You have not addressed '%0' in this
exercise yet. Please double-click and decide how you prioritise this
value";
--------------------

-e

Alex Hough

unread,
Jan 10, 2008, 10:08:50 AM1/10/08
to Tiddl...@googlegroups.com
Thank you both.
It works! 

I can see how defaultText is a 'holder' for my text.
I feel i minor personal breakthrough into the muddy box of javascript.

Thanks again

Alex

On 10/01/2008, Eric Shulman <elsd...@gmail.com> wrote:

Alex Hough

unread,
Jan 10, 2008, 10:33:59 AM1/10/08
to Tiddl...@googlegroups.com
Ok, I feel i am on a roll here... "My tiddlers are swimming downstream assisted by the flow of the water..."

It must be a similar method to change the tooltips?
I want to change them from "the tiddler 'achievement' doesn't exist" to some text which is more encouraging.

It would be useful for me to know where to find these 'insides' of tiddlers. Is it time for me to start javascript now? It feel like it.. can you recommend a starting point to compliment my tiddly advantures?

Alex

Eric Shulman

unread,
Jan 10, 2008, 10:52:58 AM1/10/08
to TiddlyWiki
> It would be useful for me to know where to find these 'insides' of tiddlers.
> Is it time for me to start javascript now? It feel like it.. can you
> recommend a starting point to compliment my tiddly advantures?

The easiest way to find the 'insides' is to look at the TW file
source, using a plain text editor (e.g., windows: WordPad, mac:
TextEdit), and search for the desired user-visible text that is being
displayed in the running TW document.

In this case, searching for the message text:
"The tiddler '%0' doesn't yet exist"
finds several different places where this phrase is used. Among them
is
config.messages.undefinedTiddlerToolTip

enjoy,
-e


Alex Hough

unread,
Jan 10, 2008, 11:07:17 AM1/10/08
to Tiddl...@googlegroups.com
Done it! Thanks again.

its like stylesheets but you have to look at the code to find the lines to overwrite...



On 10/01/2008, Eric Shulman <elsd...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages