nuvoleweb / ui_patterns

[NOTE] Development has moved to https://drupal.org/project/ui_patterns
https://drupal.org/project/ui_patterns
GNU General Public License v2.0
85 stars 56 forks source link

Patterns not displayed in AJAX views #239

Open mikemccaffrey opened 5 years ago

mikemccaffrey commented 5 years ago

When I enable "Use AJAX" on a view that is rendering rows using patterns, I get the message "Pattern Views row plugin does not support preview" whenever the filters are changed and the view refreshes.

It looks like that error was added in this issue to keep errors from displaying on views previews: https://github.com/nuvoleweb/ui_patterns/issues/54

However, it looks like the error is also being thrown on views pages that are in the front-end theme and should work fine.

mikemccaffrey commented 5 years ago

Hmm... after digging into things a bit, it seems like the preview flag might just be set for all views ajax requests, and the problem is not in this module. Weird.

Perhaps there is an alternate way to identify whether the view is being displayed in the admin theme, and is therefore unable to access the patterns from the front-end theme?

MaxCSwann commented 2 years ago

+1 for this issue. Is there any fix for this yet? the fix submitted by drclaw seems to have failed some checks

mika2na commented 2 years ago

Moved to drupal.org : https://www.drupal.org/project/ui_patterns/issues/3315661