Closed (fixed)
Project:
Views Slideshow
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 Jan 2012 at 16:29 UTC
Updated:
9 Apr 2012 at 06:00 UTC
Jump to comment: Most recent file
I have a slideshow that is a mix of "Article" and "Video" content types. I need to have a custom class added to the row that will differentiate the content type so that I can style the two slightly different.
I added the Content:Type field to my view and excluded it from display. Then in the Slideshow's settings I added the [type] token in the Row Class field. The new custom class only displays "article" in the row even when the row contains a video.
I tested this same scenario with the unformatted style and the row class would properly display article or video.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1392828-d7-1.patch | 3.23 KB | redndahead |
| #2 | row-class-fix-5426518-2.patch | 992 bytes | circuscowboy |
Comments
Comment #1
circuscowboy commentedThe problem seems to be that the variable $var['item_count'] is always 0
I didn't find out why the item_count is 0 but if you changed line 183 from
to
It will work.
This is a hack and I will look more to see if I can find out why item_count is not counting. If any one else more attached to the code can debug this please do.
Comment #2
circuscowboy commentedIt didn't take much looking to find a cleaner solution
I have attached a patch for views_slideshow_cycle.theme.inc based on the latest dev
please apply patch from this folder
views_slideshow/contrib/views_slideshow_cycle/theme
Comment #3
bschilt commentedThanks for the quick fix for this. I applied the patch and my issue is now fixed.
Comment #4
fuerst commented#2 working for me too. Applied from the views_slideshow root directory by using
patch -p5Comment #5
redndahead commentedI have committed a fix. And I have also removed some other options that didn't need to exist.