Wallpaper Script Forum » Announcements

limit number of characters in the name

(7 posts)
  1. Can limit number of characters in the name of the wallpaper in the index?

    Posted 2 years ago #
  2. masti
    Member

    go to your template folder > item.tpl > find 'truncate' word in end of 3rd line > change its default value 32 to any number you required (28 is optimum)

    Posted 2 years ago #
  3. The idea is to add the last "..." to provide continuity (25 charcters + ...)

    Posted 2 years ago #
  4. I change this line {$items[item].name|escape:'html':'UTF-8'|truncate:32} the number 32 for any number and i dont see any change.

    Posted 2 years ago #
  5. Hi,

    You need to clear cache before you see any changes.

    Posted 2 years ago #
  6. how to get the dots (...) there??

    thx!

    Posted 2 years ago #
  7. If u ve tried this technique, dots will be automatically there after truncation to specified characters.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.