Page 1 of 1

A List/Grid View Switcher...

Posted: 26 May 2016, 14:37
by Bollerx
I need to ask how to implement easily and quickly a List/Grid View Switcher?
http://screencast.com/t/V4ERWD55Psfu

thanks.

Re: A List/Grid View Switcher...

Posted: 27 May 2016, 09:09
by aimeos
Subclass the catalog lists items subpart (https://github.com/aimeos/aimeos-core/b ... andard.php), overwrite the getBody() method and choose another template based on a new parameter. Copy the template and add the icons for switching and the URL including the necessary parameter. You only have to take care about the caching. The parameter should be prefixed with "l_" like "l_layout".

We would like to get the changes into the HTML client too and appreciate an pull request :-)

Re: A List/Grid View Switcher...

Posted: 30 May 2016, 12:53
by Bollerx
Thank's for the support, for how to change the view, in my case from the client side we simplified from CSS, because they needed only the list- kind of view. It would be great, to make those functions, ...now i need to finish quickly the other tasks, so , sorry for i can't workin on it. Maybe somebody will need it -and it will do it-,in the coming future and then you can integrate it.
Thank's once again for the help's.