View Single Post
Old 11-07-2012, 01:00 PM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by odinokij View Post
I'm trying (without success) to colour columns based on:

1) timestamp in order to mark those books added today (something like: "format_date(now(), 'yyyy-MM-dd') == {timestamp:format_date( 'yyyy-MM-dd')}")
Use an advanced coloring rule with one of the two following general program mode templates.
Code:
program:
	strcmp(format_date(today(), 'yyyy-MM-dd'), format_date(raw_field('timestamp'), 'yyyy-MM-dd'),'', 'blue', '')
or
Code:
program:
	cmp(days_between(today(), raw_field('timestamp')), 1, 'blue', '', '')
I prefer the second one because you can change the "1" to be any number of days.

In both cases change the color name ('blue' above)to the one you want.
Quote:
2) the "author_link" to mark those authors who have a custom link added through manage authors (something like: "author_link:true")
Not possible for the reason theducks gave.
chaley is offline   Reply With Quote