+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: Limit the size of the description text in the category listing

  1. #21
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    440
    In the following line:

    {if $config.sf_display_fields}
    <div class="table-cell small clearfix">
    {if $item.Key == 'additional_information'}
    <div class="hirdetes_item_szoveg">{$item.value|replace: '...':''|truncate:160:'...'}</div>
    {/if}
    </div>
    {else}
    <span>{$item.value}</span>
    {/if}

  2. #22
    No, unfortunately it also causes an error....
    System error occurred
    Smarty error:
    Can you send a screenshot of where to insert the code in listing.tpl?

  3. #23
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    440
    nevtelen.png

    If it doesn't work, upload the listing.tpl file and I'll insert it for you.

  4. #24
    Jena, It's not working, unfortunately. I seem to have done everything as you said, but, unfortunately, it causes an error again on the page... System error occurred
    Smarty error....
    I would be grateful if you could make changes to my file. Can you please tell me how to send me my listing.tpl file?

  5. #25
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    440
    Upload some file in zip format and send the link in a message and I will check it for you.

  6. #26
    listing.zip
    Thank you in advance!

  7. #27
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    440
    listing.zip

    I tested it, it works for me.

  8. #28
    Great, it worked! Thank you very much!
    Last edited by Roman K.; June 25, 2024 at 04:21 PM.

  9. #29
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    440
    Then you might have a setup problem, because I tested it again and it shows everything perfectly.

+ Reply to Thread