+ Reply to Thread
Results 1 to 2 of 2

Thread: Shorten description

  1. #1
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    403

    Shorten description

    This is how I shortened the description in the listing.tpl file, but there is an error in it that I can't figure out what I'm doing wrong.

    <div class="value">{$item.value|replace:'...':''|trunca te:140:'..'}</div>
    Text that is highlighted in bold in the ad description does not display the abbreviation well. Moves the column.

    Nevtelen.png

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    You need to check if this a description field and then truncate it

    use it like that:
    Code:
    Only registered members can view the code.
    use a valid field key instead of 'description'

+ Reply to Thread