Download & Extend

formatting pager links by content type

Project:Views Slideshow
Version:6.x-3.0
Component:SingleFrame
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)

Issue Summary

Hi, I use a singleframe slideshow for images and video. see here. The 8th slide is video. I would like to format the pager items that correspond to videos differently from those that are images.

i.e.
change this: 1 2 3 4 5 6 7 8
to this: 1 2 3 4 5 6 7 8-video
but there will not always be a video in slideshow and not always at the end.

so, any idea on i could add css class to video pager items so i can select them for formatting?

thanks

Comments

#1

still struggling with this. any kind advice on where else i might try to post this question?

#2

Status:active» closed (works as designed)

You could copy the views-slideshow-pager-field-item.tpl.php template file found in views slideshow into your theme and then using php check to see if the view result matching that pager is a video. You may need to also do something with the preprocess function also. Certainly not something that's going to be simple.

If you want something that is simpler, but maybe more hackish you can create some javascript code to check each slide to see if it's a video and then change the text of the pager if it is.

nobody click here