Hello,
I would like to change the "views-slideshow-thumbnailhover.tpl.php" but i guess this change will affect all available slideshows on my website.
If i press "Theme: Information" i don't see any suggestion about theming of this file.
How can i use this file to theme only one specific slideshow on my site?
Thanks a lot!
Comments
Comment #1
redndahead commentedhmm that's a good point. The only way I can think of doing it at the moment is to use variables to tell what page you are on. Something like $_GET['q'] to get the current path and then do a different print for each one.
Comment #2
intyms commentedit seems to me that the following function is calling this file:
I guess we can use the following scenario to substitute the value of the 'template':
step 1.
check if inside of the "theme folder" exists the file "views-slideshow-thumbnailhover--views-name--views-display-id.tpl.php".
step 2.
if the file exists then use it for 'template'
step 3.
if the file doesn't exist, use the default "views-slideshow-thumbnailhover" value for 'template'.
Comment #3
redndahead commentedputting back active.
Comment #4
redndahead commentedMoving to 3.x to see if I can get this to work in there.
Comment #5
redndahead commentedand to 7
Comment #6
Alex Andrascu commentedsubscribing
Comment #7
redndahead commentedComment #8
mradamjohn commentedin the meantime, I added a few lines to views-slideshow.tpl.php and simply detected a custom value in $options['views_slideshow_thumbnailhover']['advanced'] to apply custom code. (edit: hmm I think this might be a different slideshow. we're using several of them)
Comment #9
redndahead commentedThis is now fixed. Yay merlinofchaos for the help getting this done. Actually really super simple.