A List/Grid View Switcher...

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Bollerx
Posts: 43
Joined: 11 Jan 2016, 17:29

A List/Grid View Switcher...

Post by Bollerx » 26 May 2016, 14:37

I need to ask how to implement easily and quickly a List/Grid View Switcher?
http://screencast.com/t/V4ERWD55Psfu

thanks.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: A List/Grid View Switcher...

Post by aimeos » 27 May 2016, 09:09

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 :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Bollerx
Posts: 43
Joined: 11 Jan 2016, 17:29

Re: A List/Grid View Switcher...

Post by Bollerx » 30 May 2016, 12:53

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.

Post Reply