AHristich Posted October 16, 2022 Report Share Posted October 16, 2022 Заголовок в блоках со статьями выводится так <header> <h2 class='ipsType_postTitle ipsContained_container'> <span class='ipsType_break ipsContained'> <a href="{$row->url( "getPrefComment" )}" title="{lang="read_more_about" sprintf="$row->_title"}">{wordbreak="$row->_title"}</a> </span> </h2> </header> Попытался "укоротить" заголовок до 3-х строк с помощью data-ipsTruncate data-ipsTruncate-size='3 lines' data-ipsTruncate-type='remove' ,но вылетает ошибка и если я правильно понял то из-за этого {$row->_title->truncated()|raw} . Подскажите,пожалуйста,как правильно сделать "обрезание" заголовка статьи/новости? Тему закрываем,решение найдено. Quote Link to comment Share on other sites More sharing options...
HooLIGUN Posted October 16, 2022 Report Share Posted October 16, 2022 1 час назад, AHristich сказал: Тему закрываем,решение найдено. Я бы за такое предупреждения давал. ryancoolround 1 Quote Link to comment Share on other sites More sharing options...
AHristich Posted October 16, 2022 Author Report Share Posted October 16, 2022 HooLIGUN ну получилось так,чтож поделать-то. Решение нашел раньше ответов. Quote Link to comment Share on other sites More sharing options...
HooLIGUN Posted October 16, 2022 Report Share Posted October 16, 2022 Только что, AHristich сказал: HooLIGUN ну получилось так,чтож поделать-то. Решение нашел раньше ответов. Я про то, что решение не опубликовал Donjuan 1 Quote Link to comment Share on other sites More sharing options...
Donjuan Posted October 16, 2022 Report Share Posted October 16, 2022 HooLIGUN театр одного актера Quote Link to comment Share on other sites More sharing options...
AHristich Posted October 16, 2022 Author Report Share Posted October 16, 2022 HooLIGUN Решение банальное. Нужно было добавить только data-ipsTruncate data-ipsTruncate-size='3 lines' data-ipsTruncate-type='remove' . Просто я думал что и {wordbreak="$row->_title"} нужно менять,оказалось что нет. HooLIGUN 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.