Try this
Code:
{#myshelves:'switch($,'seriestitle',field('series'),language_strings($,0))'}
Remember custom fields need to begin with a lower case letter
What this says is
Code:
If the field myshelves is 'seriestitle'
return the value of the field series
else
return the language associated with the field myshelves
From the manual
Quote:
language_strings(lang_codes, localize) – return the strings for the language codes passed in lang_codes. If localize is zero, return the strings in English. If localize is not zero, return the strings in the language of the current locale. Lang_codes is a comma-separated list.
|