Remove Username and Date when Displaying a Tiddler

689 views
Skip to first unread message

haus909

unread,
Feb 3, 2009, 3:26:37 PM2/3/09
to TiddlyWiki
I've recently started using TW, I love it, and am just in the process
of converting my Wiki to use TW. Is it possible to not display the
signed by username and dates under the tiddler name. My TW is
personal, so I know all tiddlers will be created and editted by me, so
I dont need to see that line, and it saves a bit more space.
Anybody know how to do this, or have any
Thanks

FND

unread,
Feb 3, 2009, 3:33:53 PM2/3/09
to Tiddl...@googlegroups.com
> Is it possible to not display the signed by username and dates
> under the tiddler name.

Add the following to your StyleSheet*:
.tiddler .subtitle {
display: none;
}

HTH.


-- F.


* http://www.tiddlywiki.org/wiki/StyleSheet

haus909

unread,
Feb 3, 2009, 4:24:06 PM2/3/09
to TiddlyWiki
Thats great. Thanks

ck

unread,
Jul 3, 2012, 12:31:38 PM7/3/12
to tiddl...@googlegroups.com, TiddlyWiki
Apologies for reviving an old thread ... I couldn't find an answer elsewhere.

What if I just wanted to display the tiddler's creation date, or modification date, or username, or any combination of these?

I guess I'd like to know if 'display' has any options other than 'none' and 'all'.

TonyM

unread,
Jul 3, 2012, 10:18:14 PM7/3/12
to tiddl...@googlegroups.com
The method above in effect suppresses the display by naming the style and indicating none.

This is the safe way to do it.

The viewtemplate(s) contains the code to display the item under
<div class='subtitle'>

If you have more than one view template you will need to modify each

I suggest leaving it in place but that just my taste, perhaps you could do something to make it smaller.

TonyM

ck

unread,
Jul 6, 2012, 6:55:40 AM7/6/12
to tiddl...@googlegroups.com
Maybe this snippet from my StyleSheet tiddler (which includes commented lines I've tried) will make my question more clear ...

.subtitle {display: all; padding: 0em 0em 0em 3em; }
#.subtitle {display: none; padding: 0em 0em 0em 3em; }
#.subtitle {display: name; padding: 0em 0em 0em 3em; }
#.subtitle {display: modification-date; padding: 0em 0em 0em 3em; }
#.subtitle {display: creation-date; padding: 0em 0em 0em 3em; }

No matter what I give for 'display', I either get the entire subtitle string with the tiddler's creator name, creation date, and modification date.

Over the years I've had problems with my tiddlywiki forgetting my username, so I have a lot of YourName-authored tiddlers. I'm the only one who uses my tiddlywiki, so I'm ok with not seeing the username in the subtitle, but it's nice to have the creation and mod dates.

Eric Shulman

unread,
Jul 6, 2012, 8:09:12 AM7/6/12
to TiddlyWiki
> .subtitle {display: all; padding: 0em 0em 0em 3em; }
> #.subtitle {display: none; padding: 0em 0em 0em 3em; }
> #.subtitle {display: name; padding: 0em 0em 0em 3em; }
> #.subtitle {display: modification-date; padding: 0em 0em 0em 3em; }
> #.subtitle {display: creation-date; padding: 0em 0em 0em 3em; }
>
> No matter what I give for 'display', I either get the entire subtitle
> string with the tiddler's creator name, creation date, and modification
> date.

The allowed values for the "display" CSS attribute are:
none, inline, inline-block, block

Thus, while you can control the overall visibility of the .subtitle
CSS class, you cannot use CSS to specify the kind of information being
shown.

To change the information that is being formatted for display, you
need to edit the [[ViewTemplate]] (look in the list of shadow tiddlers
for the default definition). Find this part:
--------------
<div class='subtitle'><span macro='view modifier link'></span>, <span
macro='view modified date'></span> (<span macro='message
views.wikified.createdPrompt'></span> <span macro='view created
date'></span>)</div>
--------------
and remove this portion:
--------------
<span macro='view modifier link'></span>,
--------------

That's all you need to do. From then on, when a tiddler is displayed,
the 'modifier' (username) information will no longer be included.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

WAS THIS ANSWER HELPFUL? IF SO, PLEASE MAKE A DONATION
http://www.TiddlyTools.com/#Donations
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact

ck

unread,
Jul 6, 2012, 11:26:57 AM7/6/12
to tiddl...@googlegroups.com
Works great! Thanks!

Reply all
Reply to author
Forward
0 new messages