vold57 1 Posted March 29, 2018 Report Share Posted March 29, 2018 В анонсах новых сообщений выводится по 5 строчек. Все анонсы выглядят растянуто. Как можно уменьшить количество выводимых строк? Обратиться Quote Link to comment Share on other sites More sharing options...
invisionbyte 155 Posted March 29, 2018 Report Share Posted March 29, 2018 Я правильно понимаю, что речь идёт про виджет "Лента сообщений"? 1 Обратиться Quote Link to comment Share on other sites More sharing options...
vold57 1 Posted March 29, 2018 Author Report Share Posted March 29, 2018 Да, все верно. Обратиться Quote Link to comment Share on other sites More sharing options...
invisionbyte 155 Posted March 30, 2018 Report Share Posted March 30, 2018 22 часа назад, vold57 сказал: Да, все верно. Для редактирования количества строк нужно изменить шаблон. Нужно открыть редактор HTML шаблонов темы и открыть шаблон forums > front > widgets > postFeed. Найти строчку: <div class='ipsType_medium ipsType_textBlock ipsType_richText ipsType_break ipsContained ipsSpacer_top ipsSpacer_half' data-ipsTruncate data-ipsTruncate-type='remove' data-ipsTruncate-size='{{if $orientation == 'vertical'}}6 lines{{else}}2 lines{{endif}}' data-ipsTruncate-watch='false'> Заменить 6 lines на 2 lines, к примеру. 1 Обратиться Quote Link to comment Share on other sites More sharing options...
vold57 1 Posted March 30, 2018 Author Report Share Posted March 30, 2018 Благодарю. Обратиться 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.