Changing the title bar

185 views
Skip to first unread message

Brianna Laugher

unread,
Oct 25, 2007, 11:23:07 PM10/25/07
to Tiddl...@googlegroups.com
Hello,

I want to change the title bar in my TW so it only has the SiteTitle
and not the SiteSubtitle. I tried editing the page in a text editor
but naturally when I opened it in my browser it just reverted back. I
don't see any tiddler that is like TitleBar, so I guess I am into
hacking TW itself? Any tips?

BTW: I am so happy I finally found a good use for TiddlyWiki. :D I
loved it ever since I first saw it but until now I didn't have a good
reason to use one. Now I am in a new job and I am virtually the only
one that uses the intranet wiki, which is a PbWiki. Functional but
definitely not as much fun as TiddlyWiki. I wanted to use our bug
tracker (which again practically no one else does) but its install is
a bit wonky and rather than hassle my workmates I had the light bulb
moment: use a TiddlyWiki! So I'm using it to keep all my notes and 'to
dos' about the software system we're developing. As it is an
"inherited" project there is lots of idiosyncratic code and
unfortunately almost none of those coders are around any more to ask.
So to avoid the same thing happening again in the future I hope I can
include my TW... so all the idiosyncratic things are stored in it,
rather than my brain. :)


cheers,
Brianna

--
They've just been waiting in a mountain for the right moment:
http://modernthings.org/

Eric Shulman

unread,
Oct 26, 2007, 12:28:50 AM10/26/07
to TiddlyWiki, ho...@unamesa.org
> I want to change the title bar in my TW so it only has the SiteTitle
> and not the SiteSubtitle. I tried editing the page in a text editor
> but naturally when I opened it in my browser it just reverted back. I
> don't see any tiddler that is like TitleBar, so I guess I am into
> hacking TW itself? Any tips?

Nearly everything in TW is configured by defining tiddlers... unless
you are doing some major "rocket science" coding or debugging, you
should never need to directly edit the TW file...

In this particular case, when the TW core code saves the document, the
contents of the SiteTitle and SiteSubtitle tiddlers are automatically
written into the <title>...</title> section of the file, so that the
next time the document is loaded, that title will appear in the
browser's title bar.

To change this behavior, I've written a "core tweak" (a very small
plugin) that looks for an optional [[PageTitle]] tiddler and, if
present, uses the content of *that* tiddler in the browser's title
bar, instead of using the SiteTitle / SiteSubtitle combination.

Install this plugin
http://www.TiddlyTools.com/#CoreTweaks
and then create a [[PageTitle]] tiddler, and you should be all set!

Note that this tweak only affects the text on the browser's title bar,
and does NOT affect the normal rendering of the SiteTitle and
SiteSubtitle in the TW document display itself.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

FND

unread,
Oct 26, 2007, 2:46:34 AM10/26/07
to Tiddl...@googlegroups.com
Good to have you on board, Brianna!

> I've written a "core tweak" (a very small plugin)
> that looks for an optional [[PageTitle]] tiddler and, if
> present, uses the content of *that* tiddler in the browser's title
> bar, instead of using the SiteTitle / SiteSubtitle combination.

That's a very good idea, and should be considered for integration into
the core (it'd only be one or two lines of code then).
I have created a ticket: http://trac.tiddlywiki.org/ticket/401

> So to avoid the same thing happening again in the future I hope I can
> include my TW... so all the idiosyncratic things are stored in it,
> rather than my brain.

That's definitely a very good use of TiddlyWiki! If only everyone was
that thoughtful...
By the way, you might be interested in the video posted here:
http://philwhitehouse.blogspot.com/2007/10/tiddlywiki-in-bt.html
The TeamTasks adaptation could be of interested to you - though it's not
ready for public release just yet. If you're interested, you should
watch PhilH's blog:
http://www.hawksworx.com/journal


-- F.

Brianna Laugher

unread,
Oct 26, 2007, 2:52:36 AM10/26/07
to Tiddl...@googlegroups.com
On 26/10/2007, Eric Shulman <elsd...@gmail.com> wrote:
> To change this behavior, I've written a "core tweak" (a very small
> plugin) that looks for an optional [[PageTitle]] tiddler and, if
> present, uses the content of *that* tiddler in the browser's title
> bar, instead of using the SiteTitle / SiteSubtitle combination.

That's champion. Thanks a lot Eric, works like a charm. :D

BTW [to the world], I find it a bit strange that the 'backstage'
'plugins' doesn't have a link 'add new'. I don't know if there is any
benefit to adding plugins like this via 'import' or manually? (Copy
the contents into a new tiddler with the same name, which is what I
did) The import thing seems like it could be simpler. Figuring out how
to 'install' a plugin is a bit mystifying. Couldn't there just be
something like - copy a tiddler's permalink in to a 'install' text
field - wala?

FND

unread,
Oct 27, 2007, 2:44:26 AM10/27/07
to Tiddl...@googlegroups.com
> I don't know if there is any
> benefit to adding plugins like this via 'import' or manually?

Previously there was no difference.
As of v2.2, however, TiddlyWiki comes with a synchronization mechanism.
This basically enables TiddlyWiki to automatically check for updates of
previously-imported tiddlers.

The extra information required for this to work (e.g. URL of the server
to sync with) is added only when using the import mechanism.

Note: At the moment, the sync mechanism is still very basic. For
example, it only allows one-way sync'ing (server to client, not vice
versa) and will not work properly when altering the respective tiddler
(like changing its tags).

> Figuring out how to 'install' a plugin is a bit mystifying.

That's a good point. (These are the kinds of things that are easy to
overlook for long-time users, so thanks for pointing it out.)
There's already been some discussion around improving plugin handling in
general, and this is another issue we should consider.


-- F.

Reply all
Reply to author
Forward
0 new messages