Problem/Motivation

Hi,
This module is very useful but I'm facing an issue when trying to switch between displays: the exposed form and view content are not rendered on the "switched" display (meaning any other display than the default one).
Please note that it is a torture test: I'm using the switch for blocks (with AJAX enabled) in a paragraph (the view is called with view_reference_field).

Comments

plusproduit created an issue. See original summary.

luksak’s picture

Hi! Thanks for reporting this issue.

So there are probably two issues here:
The module is currently incompatible with ajax views. It leads to weird behavior in combination with exposed filters, because it sets the values as GET parameters.
The view mode switching could be broken because of a bug in 1.1.1. Could you please test 1.1.2?

plusproduit’s picture

Hi,

Thanks for the quick answer.
I already updated module to 1.1.2, sorry I didn't mention it (unavailable version in the issue form).
The module works like a charm in a block (yes, with ajax!), but doesn't handle the view switch correctly when it's called via views reference field.
It's a pretty minor bug though, as it's a very special use case.

luksak’s picture

Yes, that's a edge case.

Does view_reference_field allow selection of the display? Do you select a display to render?

I see two possible causes of this issue:

  • Caches of paragraphs or something else -> Could you test if it works with all caches disabled?
  • view_reference_field simply overrides the display selected by this module. -> We should try to debug this with breakpoints to find out in which order the two modules hooks are being called.

Currently I don't have time to work on this. Could you look into that?

luksak’s picture

Status: Active » Closed (cannot reproduce)

Closing since there was not feedback on this.