Jump to content

Two display with two different truncate ?


mindow

Recommended Posts

The problem is, there is only one product-list.tpl, so the truncate you posted above will generally work.

But it can't decide wether the operation takes place in grid or in list mode.

 

I think you had to use JQuery instead of smarty. But quite tricky.

Better solution: Use only CSS with line-height and overflow, so excess text is cutted of the end.

That way you can limit the number of lines to be displayed and use the maximum possible text length.

Edited by Scully (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...