Jump to content
xt:Commerce Community Forum

Template Trim Shorttext


Recommended Posts

Hallo,

ich habe eine Frage zur Funktion trim. Ich habe in unseren Produkt Listing die Standard Trim 75 auf 110 erhöht, aber es ändert sich nichts im Frontend. Muss man wo anders noch etwas machen damit das wirksam wird?

<div class="title">
    <p class="h4"><a href="{$module_data.products_link}">{$module_data.products_name}</a></p>
    {if $module_data.products_short_description|strip_tags|trim != ''}
        # old > <p class="desc desc-short text-middle hidden-xs">{$module_data.products_short_description|strip_tags|truncate:75:'...'}</p>
        <p class="desc desc-short text-middle hidden-xs">{$module_data.products_short_description|strip_tags|truncate:110:'...'}</p>
    {elseif $module_data.products_description|strip_tags|trim != ''}
        # old > <p class="desc desc-long text-middle hidden-xs">{$module_data.products_description|strip_tags|truncate:75:'...'}</p>
        <p class="desc desc-long text-middle hidden-xs">{$module_data.products_description|strip_tags|truncate:110:'...'}</p>
    {/if}
</div>

Danke und schönen Tag

Silvio

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
  • Create New...