View Single Post
Old 03-17-2017, 09:22 AM   #4
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
Probably davidfor have a better solution, mine is.

Make a Temple Functions:

Function: my_series
Arg count: 1

Code:
def evaluate(self, formatter, kwargs, mi, locals, r):
	if r=='Nebula' or r=='Hugo' or r=='Clarke':
		x = 'Award Winners'
	else:
		x = ''
	return x
___________________________________

Make custom column:

Lookup: name
Column heading: Name
Column type: Column build from other columns
Template: {series:my_series()}
___________________________________

Add the new column to the driver "#name"

Last edited by oren64; 03-17-2017 at 09:33 AM.
oren64 is offline   Reply With Quote