[tw] Re: How to change the date format in tiddlers' headers?

2015-05-14 Thread Eric Shulman
On Thursday, May 14, 2015 at 9:49:56 AM UTC-7, nbdsp wrote:

 Currently the 'modified' date in tiddlers is formatted as relative 
 backward intervals: 10 days ago, 12 min ago and the like. I'd like to 
 change it to something else. I found a recommendation to create a 
 systemConfig tiddler with the following lines:

 config.views.wikified.dateFormat = -0MM-0DD 0hh:0mm;
 config.macros.timeline.dateFormat = -0MM-0DD (ddd);


Those instructions are for use with TiddlyWiki Classic.

Modern TiddlyWiki (v5+) uses a different approach.

To change the display of the modification date in the tiddler header:

1) from the sidebar, open the advanced search tiddler (click on the 
magnifying glass next to the search input field)
2) in the Shadows tab, search for
   $:/core/ui/ViewTemplate/subtitle
3) open that tiddler, and edit it
4) note this widget:
   $view field=modified format=relativedate/
5) To format the date the way you want, change this to:
   $view field=modified format=date template=-0MM-0DD 0hh:0mm/

It's even easier to change the date format used in the Recent tab in the 
sidebar:

Using the advanced search tab again, search for
   $:/language/RecentChanges/DateFormat
Then, edit that tiddler and change the content to your desired date format 
string.

That should do it.


enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - Small Tools for Big Ideas!
InsideTiddlyWiki: The Missing Manuals

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation




-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/137f2ab7-d91f-480e-960a-cb0f911c6e85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to change the date format in tiddlers' headers?

2015-05-14 Thread nbdsp
Many thanks, Eric!

Albert.


On Thursday, May 14, 2015 at 8:49:56 PM UTC+4, nbdsp wrote:

 Currently the 'modified' date in tiddlers is formatted as relative 
 backward intervals: 10 days ago, 12 min ago and the like. I'd like to 
 change it to something else. I found a recommendation to create a 
 systemConfig tiddler with the following lines:

 config.views.wikified.dateFormat = -0MM-0DD 0hh:0mm;
 config.macros.timeline.dateFormat = -0MM-0DD (ddd);

 But this hasn't changed the date format in tiddlers' headers. How does one 
 change that date format?

 Thanks,
 Albert.




-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/44ede840-4aa1-4406-97b0-da2ef62c541e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.