View Single Post
Old 06-11-2022, 03:57 AM   #1
TreeFrogBandit
Member
TreeFrogBandit began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2020
Device: none
Short title template function

Hi everyone, sorry if this has already been answered. I have quite a lot of academic titles in my library and they have really long titles. I want to shorten the titles so they will fit on the covers that I generate for using the generate cover plugin.

I can use {title:shorten(50,,0)} to only give me the first 50 characters of each title, but it's not very aesthetically pleasing - because it cuts off the end of words most of the time.

Is there a function I can use to return the first n words of a title (based on separation by spaces) or automatically returns everything before the colon that nearly always sneaks into academic titles?
TreeFrogBandit is offline   Reply With Quote