Views 2 and drupal 6.22 + showcase 2.3. Simply not showing a view block with a content (image, title, node body). Previous versions worked correctly, but this one is full of bugs.

CommentFileSizeAuthor
#4 jquery files.zip17.26 KBroberthindle

Comments

rfsbsb’s picture

Status: Active » Postponed (maintainer needs more info)

Hi, could you please give more info? I've tested both page and block displays and they worked ok...

roberthindle’s picture

I 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.

rfsbsb’s picture

Hi @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!

roberthindle’s picture

StatusFileSize
new17.26 KB

Thanks @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.

roberthindle’s picture

Status: Postponed (maintainer needs more info) » Active

Ok, 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 -

print views_embed_view('test', 'default', $current_view->args[0]);

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) -

 function phptemplate_preprocess_page(&$vars) {
// special page tpl for each vocabulary
    if ( arg(0) == 'taxonomy' && arg(1) == 'term' ) {
        $term = taxonomy_get_term(arg(2));
        $vars['template_files'][] = 'page-taxonomy-vocabulary-' . $term->vid;
    }
}

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 -

<link type="text/css" rel="stylesheet" media="all" href="/maltfilms-cleaned/sites/all/modules/views_showcase/css/views_showcase.css?r" />
<script type="text/javascript" src="/maltfilms-cleaned/sites/all/modules/views_showcase/js/views_showcase.js?r"></script>

And also...

"views_showcase": { "easing": "easeOutBounce", "cycle": "scrollRight", "sync": "true", "timeout": "4000", "listPause": "false", "pause": "false" }, 

is missing from this section -

<script type="text/javascript">
<!--//--><![CDATA[//><!--

STUFF

//--><!]]>
</script>

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

roberthindle’s picture

Status: Active » Fixed

The 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.