Active
Project:
Views Showcase
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2009 at 13:15 UTC
Updated:
1 Sep 2012 at 23:41 UTC
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 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 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 commentedIs there any chance you still have links to the demos of the multiple showcases running on the one page? Thanks
Comment #6
aze2010 commentedsubscribing :(