Forums / Setup & design / How to implement a switch between gridview and lineview?

How to implement a switch between gridview and lineview?

|
|
Next topic
 »
Author Message

Maxim Kopytov

Sunday 13 April 2025 4:04:36 am

Hello, guys!
Please tell me please, how to correctly implement the switch between gridview and lineview on the product page?
As a product folder, I use the manufacturer content class and the corresponding template manufacturer.tpl.
As a product, I use the product content class and the corresponding template product.tpl.
Lineview is already provided in the system.
Should I create separate templates for lineview and gridview for the manufacturer folder and product?

______________
I love eZ Publish

Graham Brookins

Wednesday 16 April 2025 8:45:52 pm

Hello Maxim!

Could you use a view parameter (transmission method via URL Parameters) to send the template the switch variable content to switch from grid to line?

Cheers,
Graham

Post Theme Song: cr1tter - shaun white

Audio / Video: https://www.youtube.com/watch?v=YXVt35PBJ4g