View Single Post
Old 03-31-2025, 05:27 PM   #824
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by correoparaappzz View Post


hi, need some help.

i want to a second author category in the tag browser that goes fist letter Author > Author > fist letter Series > Series, so i got this:
Code:
program:

    if $authors != ""
    then
        first_letter = substr($authors, 0, 1);
	first_s_letter = first_non_empty(substr($series, 0, 1), "");
        if $series != ""
        then
            '[' & first_letter & ']' & '.' & $authors & '.' & '[' & first_s_letter & ']' & '.' & $series
        else
            '[' & first_letter & ']' & '.' & $authors & '[' & '.Standalone' & ']'
        fi
    else
        "Unknown Author"
    fi
what im having problems with is that in the authors column i divide the authors with '&' not ',' so it ends up looking like the image
What do you want it to look like? What is supposed to happen with multiple authors? Is the column supposed to be hierarchical? And why are you surrounding the first letters with "[" "]"
chaley is offline   Reply With Quote