Closed (fixed)
Project:
Views Showcase
Version:
6.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2011 at 05:47 UTC
Updated:
22 Feb 2012 at 16:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
rfsbsbHi, could you please give more info? I've tested both page and block displays and they worked ok...
Comment #2
roberthindle commentedI second this. I am using views 6.3. I have the libraries module installed and have copied the cycle and easing js files into sites/all/libraries/cycle (and /easing respectively). I have correctly set it up in views (i have used this module successfully many times in the past with an older version). I am getting two ul lists with no styling at all. Using firebug, I can see it's not taking anything from the stylesheet. I have tried moving the stylesheet to my theme and updating in my info file accordingly but to no avail.
EDIT: Ok, so I've managed to get it to see the stylesheet by hardcoding it into the page.tpl.php file (not an ideal solution obviously). However the actual showcase is not working in that clicking on the navigation links doesn't change the main display and it doesn't cycle.
Comment #3
rfsbsbHi @roberthindle I've started a fresh site using latest version of Drupal 6 (which I think you are using), views and views showcase and everything worked fine.
Can you provide more info? Are you using latest version of every module? Are you testing for Drupal 6 or 7? Did you download libraries api module? Are you using a default theme or a custom theme?
If you please provide these info, I would like very much to know and fix it!
Comment #4
roberthindle commentedThanks @rfsbsb for looking at this.
I am using:
Drupal 6
libraries 6.x-1.0
views 6.x-3.0
views showcase, I am guessing 6.x-2.3 as the info file says -
name = Views Showcase
description = Display a view like a showcase to highlight items.
version = 6.x-0.1
core = 6.x
package = Views
dependencies[] = views
; Information added by drupal.org packaging script on 2009-06-08
version = "6.x-1.0-beta2"
core = "6.x"
project = "views_showcase"
datestamp = "1244502978"
; Information added by drupal.org packaging script on 2011-10-24
version = "6.x-2.3"
core = "6.x"
project = "views_showcase"
datestamp = "1319475936"
Theme - I am developing my own using zen as a base theme (simple template overrides and css)
I have attached the two relevant folders that I have in the sites/all/libraries folder. You will see that I changed the names to /jquery.cycle and /jquery.easing as this got the views_slideshow module working.
I am going to start looking at this problem again today and will let you know if I get anywhere. If neither of us do, in principle I have no problems sending you the files and db if you can't recreate the problem - if that's of any help.
Comment #5
roberthindle commentedOk, so I've found where the issue is occurring.
A view using showcase works fine when embedded into a node.tpl.php using the code -
However it doesn't work when embedded into a page.tpl.php template. Nor does it work (as I want it to) in a term page template such as 'page-taxonomy-vocabulary-7.tpl.php' (made possible with the following code in my theme template - included FYI) -
From checking the source code the problem appears to be that the additional code to make it work is only being added to the head when the view is embedded in the node template and not in other instances. The code that is missing is -
And also...
is missing from this section -
is there any way of getting this working, or a workaround that you could suggest? ..as I would really like to integrate views slideshow for my blog topic pages as it's such a great module!
Additionally, in order to get the cycling and easing to work I had to rename -
jquery.cycle.all.js to cycle.js and place it in libraries/all/cycle
jquery.easing.js to easing.js and place it in libraries/all/easing
However doing this has stopped views slideshow from working. To get this working again I had to duplicate the cycle folder and rename the duplicate back to
jquery.cycle.all.js in a folder called libraries/all/jquery.cycle
EDIT: I have just discovered I have the same problem with the views slideshow module. It works in the node.tpl.php template and also in the sidebar template but not in a page.tpl.php template.
Thanks very much.
Rob
Comment #6
roberthindle commentedThe solution is here for anyone struggling with this -
http://drupal.org/node/823056
And check out the notes above re naming the two js files.
Thanks
Rob