11 years ago
3
Topic

Hello.

One of the fields displayed on my list is a text field. for some records this field contains long text which distort the whole presentation of the list.

I'd like to truncate this field after X characters (optionally add "..."), and/or decrease its font size.

How can I do this without writing a whole new custom template for list view?

Thanks!

Mor

Get a Book for SEBLOD
11 years ago
1
Level 1

Hi Morsagmon,

You must create a little typo plugin (very easy) and apply the typo on your field (depends of the template used, check before if you can apply a typo on your field value).

We will publish soon a typo plugin to truncate string even if it's HTML string.

Regards.

11 years ago
0
Level 2

Thanks, Octopoos.

Might you know where can I find the documentation/guide on writing typo plugins?

I'm using the standard Seb-Table and Seb-One templates.

Thanks!

11 years ago
0
Level 1

I found this (old) plugin provided here by Lionel. Needed to make a small fix in it (comment out one line) and it works fine on Seblod 3.

Thanks!

Get a VIP membership