This question has been tormenting for a long time, there is a presentation, for example, a "catalog of goods", when we go to the */catalog page, then the materials open in a list.
How to make that when you click on the appropriate icon (which we insert in the right place) the goods are opened with tiles.
I think that it is possible to substitute an argument to the address, for example: */catalog?big (so that views still understand what needs to be output if we clicked on a direct link), that is, the format is selected by default in the view: “table> fields "If you clicked on the corresponding zanachek, and the address took the form of the type: */catalog?big , then the presentation should be displayed in the format:" unformatted list, an entity ready for output ".
I read the views API but so far to no avail, tell me where to dig? Maybe there is a hook that prints the presentation code, having been inserted into which it will be possible to change the format depending on the conditions?
Now I know a way only with the help of js and css, but it’s wrong to customize styles, if, when changing the format, I need to rebuild the html structure of the reflection of the type of material.