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

redndahead’s picture

Status: Active » Postponed (maintainer needs more info)

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

intyms’s picture

it seems to me that the following function is calling this file:

function views_slideshow_thumbnailhover_theme($existing, $type, $theme, $path) {
  return array(
    'views_slideshow_thumbnailhover' => array(
      'arguments' => array('view' => NULL, 'options' => array(), 'rows' => array(), 'title' => ''),
      'template' => 'views-slideshow-thumbnailhover',
      'file' => 'views_slideshow_thumbnailhover.theme.inc',
    ),

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

redndahead’s picture

Status: Postponed (maintainer needs more info) » Active

putting back active.

redndahead’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev

Moving to 3.x to see if I can get this to work in there.

redndahead’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

and to 7

Alex Andrascu’s picture

subscribing

redndahead’s picture

Title: how to override views-slideshow-thumbnailhover.tpl.php to affect only one specific slideshow » Add additional template suggestions so one can theme per slideshow
Category: support » feature
mradamjohn’s picture

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

redndahead’s picture

Status: Active » Fixed

This is now fixed. Yay merlinofchaos for the help getting this done. Actually really super simple.

Status: Fixed » Closed (fixed)

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