Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be extremely useful to be able to put more than one views showcase on a page. When I try two they both stop working.
Any workarounds?
Thanks
Comments
Comment #1
darkdimI have the same problem. How can it be solved?
Comment #2
garywiz CreditAttribution: garywiz commentedThis isn't an easy fix.
There are two problems:
I have successfully gotten the module to work with multiple showcase views by making the above changes. Maybe when I get a chance over the next week I can post some examples. However, the first problem (per-view settings) is harder to solve and I may not bother, since I don't need per-view settings.
Comment #3
benjamin_dk CreditAttribution: benjamin_dk commentedsubscribing
Comment #4
miro_dietikerYou need to store the views settings in the drupal settings js variable. Switching to a per-instance settings container is straight forward.
We can use then a jquery .each to cycle through all views showcase instances and use the id of the showcase to address the corresponding settings in the drupal settings js.
You're right, this leads to some rewrite but also it would make the code much more clean.
Comment #5
drupal-user23 CreditAttribution: drupal-user23 commentedIs there any chance you still have links to the demos of the multiple showcases running on the one page? Thanks
Comment #6
aze2010 CreditAttribution: aze2010 commentedsubscribing :(