Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50107

Template: Show only first value in a taglike

$
0
0
I have this template in KoboTouchExtended's subtitle field:

Code:

program:
        if field('#serieslike') then
                template('{#serieslike} #{#serieslike_index:0>2s}')
        else
                if field('#taglike') then
                        template('{#taglike} | {#enum}')
                fi
        fi

(For context, #serieslike is for reading lists, #taglike is fanfic category, and #enum is fanfic status.)

This works as expected. However, I noticed books with multiple values in #taglike tend to cause the subtitle length to overflow on my Kobo. So I'd like it to just display the first value. How do I do that?

:thanks:

Viewing all articles
Browse latest Browse all 50107

Latest Images

Trending Articles



Latest Images