View Single Post
Old 02-20-2014, 10:30 PM   #318
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Samanthaaaa View Post
Thank you David. I don't know if this will veer going a little off-topic now and maybe I need to cross-post in the 'Count Pages' thread too... But I want to create a few bookshelves which sort my 'books' into shelves based on the value of the word count. For example shelves with the title: 'Greater than 20,000 words', 'Greater than 50,000 words', 'Greater than 100,000 Words' etc.

How would I go about this? (And if this is beyond the knowledge of this thread, please tell me to post it else-where).
That's not off-topic at all, and it is quite a good idea. I haven't created shelves like that, but I have my word count column colour coded to indicate "Novel", "Novella" etc.

To do something like this, you need a custom column that uses a template to generate the name of the shelf. The following should work:

Code:
Lookup Name:    wordsshelfname
Column Heading: Words Shelf Name
Type:               Column built from other columns
Template: {#words:'cmp($, 100000, cmp($, 50000, cmp($, 20000, '', 'Greater than 20,000 words', 'Greater than 20,000 words'), 'Greater than 50,000 words', 'Greater than 50,000 words'), 'Greater than 100,000 Words', 'Greater than 100,000 Words')'}
Then add "#wordsshelfname" into the shelf column name field of the driver configuration.

You can change the names to what you want. And the "#words" is the lookup name of your word count column.

If you want to add more divisions of the shelves, it isn't hard. But, it might be an idea to look at a slightly different way of doing it. The templates can be put elsewhere, so that they can be reused more easily.
davidfor is offline