Jump to content

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


 Share

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

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

 

 

Edited by Александр Христич
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.

Loading...
 Share

×
×
  • Create New...

Important Information

By using our site you agree to our Privacy Policy