TWT-Treeview, visibility of Tags and Creation Date

21 views
Skip to first unread message

TW-User

unread,
Jul 4, 2011, 10:46:11 AM7/4/11
to TiddlyWiki
How to make the Tags and the Creation Date visible on each Tiddler

Måns

unread,
Jul 4, 2011, 3:23:43 PM7/4/11
to TiddlyWiki
Hi TW-User

> How to make the Tags and the Creation Date visible on each Tiddler

Have a look at a standard TW's ViewTemplate tiddler (You'll find it in
the sidebartabs "More" in the tab "shadowed")

You'll see sth like this:

<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>
<div class='tagging' macro='tagging'></div>
<div class='tagged' macro='tags'></div>

I don't remember if TWTreeView uses a custom ViewTemplate section in a
systemTheme tiddler or if it's using the standard ViewTemplate...

Report back if it doesn't work from the standard ViewTemplate - then
we'll have to find the custom themebased one...

Cheers Måns Mårtensson

HansBKK

unread,
Jul 5, 2011, 12:31:52 AM7/5/11
to tiddl...@googlegroups.com
Here is the ViewTemplate from the "Executive" flavor, my current favorite TW implementation.

<!--{{{-->
    <div macro="hideWhenTagged .mq">
<div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'><span style="color:#ccc;">[</span >add:»<span macro='newHere label:"subtopic"'></span><span style="color:#ccc">]</span></div><br>
<div class='title' macro='view title'></div>
    </div>
    <div macro="showWhenTagged .mq">
    <div class='toolbar' macro='toolbar  closeTiddler closeOthers closeAll'></div><div class='title' macro='view title'>Master Quality - </div>
    </div>
<div><span macro='unsavedChanges panel'></span></div>
<div class='viewer' macro='view text wikified'></div>
<div class='tagClear'></div>
<!--}}}-->

Look at the one from the stock TW and you'll see where the "tagged" (as opposed to "tagging") content is displayed.

Copy and paste from there into yours, probably before the title div?

Then if you want to style it at all, I recommend Firefox+Firebug to get the necessary classes, you'll need some CSS skills in modifying StyleSheet.

When you get it all working, post back here so others can learn. . .

Hope this helps

TW-User

unread,
Jul 11, 2011, 1:33:09 PM7/11/11
to TiddlyWiki
> <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>
> <div class='tagging' macro='tagging'></div>
> <div class='tagged' macro='tags'></div>

Thank you very much, now I can see the tags and the creation date
Reply all
Reply to author
Forward
0 new messages