+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

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

  1. #11
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,226
    Note that this solution is for enabled option Field names in browse form in Basic Settings > Listings

  2. #12
    Ok.. I understand. But can you help us to limit the description in listings?
    Some people make Big descriptions with many spaces between words.
    So can you tell me how to limit the description in listings?
    1.png

  3. #13
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,226
    You can add the following style:

    Code:
    Only registered members can view the code.

  4. #14
    ok this work but user cannot read all the description if he want. how can user expand the description with a button?

  5. #15
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,226
    It will require a small customization

  6. #16
    Hello. Could you please tell me where in the new theme to limit the number of displayed characters in the description, just like it was in the previous Rainbow template.
    2024-06-22_173939.png
    2024-06-22_173640.png

  7. #17
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,226
    Hello,

    Add this style:
    Code:
    Only registered members can view the code.

  8. #18
    Thanks Rudi, but unfortunately it is unchanged. The full description is displayed, with no text reduction...

  9. #19
    Master
    Join Date
    Oct 2019
    Location
    Hungary
    Posts
    440
    I solved it like this: featured_item.tpl and listing.tpl

    add:
    {if $item.Key == 'additional_information'}
    <div class="hirdetes_item_szoveg">{$item.value|replace: '...':''|truncate:100:'...'}</div>
    {/if}
    style.css

    add:
    .hirdetes_item_szoveg {
    padding: 5px 10px 5px 0;
    }

  10. #20
    Thank you very much, but unfortunately this option gives me an error...
    System error occurred
    Smarty error:
    And where do I need to insert the code in listing.tpl?

+ Reply to Thread