View Single Post
Old 02-27-2023, 11:22 AM   #2850
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,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by isarl View Post
Just remember: if you want to process a column before using it as collections, then you need to put that column into a template, not in your “Collections Columns” setting. The “Collections Columns” setting is only for data that will be used as-is.
My personal choice would be to do it all in the template and leave "Collections Columns" empty/unchecked. That way I have only one place to look and I can more easily fine tune the results.

Example using the columns you mentioned:
Code:
program:
# Remove tags listed in tags_to_ignore
	tags_to_ignore = 'danach, kurz';
	list_join(':@:', 
		list_difference($tags, tags_to_ignore, ','), ',',
		$#genre, ',',
		$#collections, ','
	)
chaley is offline   Reply With Quote