Jump to content

Заголовок статьи/новости


AHristich

Recommended Posts

Заголовок в блоках со статьями выводится так

<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} .

Подскажите,пожалуйста,как правильно сделать "обрезание" заголовка статьи/новости?

Тему закрываем,решение найдено.

Link to comment
Share on other sites

1 час назад, AHristich сказал:

Тему закрываем,решение найдено.

Я бы за такое предупреждения давал.

Link to comment
Share on other sites

Только что, AHristich сказал:

HooLIGUN ну получилось так,чтож поделать-то. Решение нашел раньше ответов.

Я про то, что решение не опубликовал 

Link to comment
Share on other sites

HooLIGUN Решение банальное. Нужно было добавить только data-ipsTruncate data-ipsTruncate-size='3 lines' data-ipsTruncate-type='remove' .

Просто я думал что и {wordbreak="$row->_title"} нужно менять,оказалось что нет. 

 

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...