Quote:
Originally Posted by chaley
Yes, you can use template-based collections with column-based collections.
You need a "rule" per publisher. For me, the clearest and easiest way is this:
Code:
program:
switch_if(
$publisher == 'BEL Editions', 'BEL',
$publisher == 'Bibebook', 'dp',
$publisher == 'Baen', 'Baen',
$publisher == 'Tom Doherty Associates', 'TOR',
'')
Notes: - You can have as many "rules" as you want.
- The equals comparison is case insensitive.
- The '' at the end is the default if no comparison matches. You might want to use an actual value there.
- Having a collection name appear twice, for example in both a column and in the template result, isn't a problem.
|
Brilliant! That's exactly what I need.
Thank you very much for your help.