mindow Posted July 7, 2017 Share Posted July 7, 2017 (edited) solved. Edited July 11, 2017 by mindow (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted July 7, 2017 Share Posted July 7, 2017 (edited) 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 July 7, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now