Hi,
I'm a bit confused about something: when theming a views slideshow. In normal views, I can overwrite the style template which dynamically generates all the fields through a foreach loop.
Am I correct that views slideshow bypasses this step? It seems that the equivalent is to add the top navigation, a single 'slideshow' output and bottom navigation.
I can live with this if I can overwrite a preprocess function or so, but now I don't know how to do it. I looked in the views_slideshow.theme.inc file and saw that the rows are already processed when it comes to $vars['rows'] in function _views_slideshow_preprocess_views_slideshow(&$vars).
My end-goal is to add a class to the row wrapper on every 4th row for theming purposes. (margin on all rows except the last). I show 8 views rows per slide.
Comment | File | Size | Author |
---|---|---|---|
#1 | cycle classes.jpg | 88.46 KB | Danny_Joris |
end goal.jpg | 64.51 KB | Danny_Joris | |
style output.jpg | 70 KB | Danny_Joris |
Comments
Comment #1
Danny_Joris CreditAttribution: Danny_Joris commentedSo.. to start, I was confused about where to look for template files. The fact that no views slideshow CYCLE template files were listed in the views overrides made me look into the wrong folders. I guess the views_slideshow cycle template files do not lend them self to be overwritten by views namespaces.
I have to say that for a while i had mistaken views field wrappers with views row wrappers. :/
Another confusion I had is that in the 8 rows there was a views-row-first class, but no views-row-last, which made me think that the numbered views-row classes would further increment after views-row-7, but it doesn't. In that case i wouldn't need to overwrite views row classes as I have enough to work with there already.
Maybe I should turn this issue into a feature request to add a views-row-last class?
Comment #2
Danny_Joris CreditAttribution: Danny_Joris commentedComment #3
loparr CreditAttribution: loparr commentedIt has been quite a time and nobody is interested in this? Have you solved it? Thank you
Comment #4
NickDickinsonWildeComment #6
NickDickinsonWildeDone, thanks for noticing/requesting :)