Thread: Counting Tags
View Single Post
Old 03-20-2012, 07:42 AM   #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,376
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Create a column with type "column built from other columns". You probably want to set the "Search/Sort column by" box to "Number" so that you can use numeric sorting, and also searching such as #yourcolkey:>10.

Set the template to
Code:
{tags:count(,)}
For completeness, the above is a single-function mode template. The same template in template-program mode is
Code:
{tags:'count($, ',')'}
The same template in general program mode (runs faster than either of the above) is
Code:
program: count(field('tags'), ',')
chaley is offline   Reply With Quote