Hiding The Date of Authorship On A Tiddler

45 views
Skip to first unread message

Digital Doctor

unread,
Dec 24, 2007, 11:04:38 PM12/24/07
to TiddlyWiki
How do I hide a DATE a Tiddler was created.

I have a course starting January 2. I don't necessarily
want students to know that the tiddler was created
December 24. (LOL)

RC

Eric Shulman

unread,
Dec 24, 2007, 11:07:49 PM12/24/07
to TiddlyWiki
In your [[StyleSheet]], add:

.tiddler .subtitle { display:none; }


-e
Eric Shulman
TiddlyTools / ELS Design Studios

Digital Doctor

unread,
Dec 24, 2007, 11:32:10 PM12/24/07
to TiddlyWiki
Eric:

Is there any way, to keep the authorship visible
but either a) hide the date or b) manually type in
a different date/description (i.e., Winter Session)

RC

Digital Doctor

unread,
Dec 24, 2007, 11:59:55 PM12/24/07
to TiddlyWiki
I thought I had figured out, how to change the
Author 'handle' in the tiddler; but in fact I have NOT.

Would appreciate a helping hand with this matter.

RC

wolfgang

unread,
Dec 25, 2007, 12:09:41 AM12/25/07
to TiddlyWiki
Hi RC,

You can use TiddlerTweakerPlugin to change the Author and dates of
tiddlers. ;-)

Regards,

W.

http://www.tiddlytools.com/#TiddlerTweakerPlugin

FND

unread,
Dec 25, 2007, 5:10:49 AM12/25/07
to Tiddl...@googlegroups.com
> Is there any way, to keep the authorship visible
> but either a) hide the date or b) manually type in
> a different date/description (i.e., Winter Session)

In the (default) ViewTemplate shadow tiddler, find this line:
---------------
<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>
---------------

In order to hide the dates, remove the SPANs with the macro attributes
"view created" and "view modified", reducing that line to the following:
---------------
<div class='subtitle'>
<span macro='view modifier link'></span>
</div>
---------------

To use a fixed (i.e. not date-dependent) expression, simply add the
respective text (the wrapping SPAN is optional):
---------------
<div class='subtitle'>
<span macro='view modifier link'></span>
<span>Winter Session</span>
</div>
---------------

Of course such a fixed expression probably doesn't make much sense, but
I can't think of an easy way to generate conditional output* there.
You could, however, modify the date format:
---------------
<div class='subtitle'>
<span macro='view modifier link'></span>,
<span macro='view modified date "YYYY-0MM-0DD 0hh:0mm"'></span>
(<span macro='message views.wikified.createdPrompt'></span>
<span macro='view created date "YYYY-0MM-0DD"'></span>)
</div>
---------------
More info on date formats:
http://www.tiddlywiki.org/wiki/Timestamps

HTH.


-- F.


* as in, "if(month == 'December') then write('Winter Session')"
for that you'd probably extend TW's Date.prototype.formatString()

Reply all
Reply to author
Forward
0 new messages