I was trying to manually add the skin option (skin: "top_menu") to the yoxview.js file but I am not able to make it work. (Tried similar syntax options but with no luck.)
Am I doing something wrong with syntax or it is not possible?

My modified code:

$('body').once('yoxview').yoxview({
        skin: "top_menu",                         
        'thumbnailsOptions': {
          'setTitles': true
      }
    });

original code in yoxview.js:

$('body').once('yoxview').yoxview({
        'thumbnailsOptions': {
          'setTitles': true
      }
    });

Comments

arx-e’s picture

I managed to insert other options by modifying the yoxview.js file like this:

(function ($) {

/**
 * Provides the YoxView Drupal behavior.
 */
Drupal.behaviors.yoxview = {
  attach: function (context, settings) {
    // Apply the YoxView image viewer to the desired elements.
    $('body').once('yoxview').yoxview({
      'backgroundColor' : '#222222',
      'buttonsFadeTime' : 1800 ,
      'thumbnailsOptions': { 'setTitles': true }
    });
  }
};

})(jQuery);

but when I add the skin option it breaks:

(function ($) {

/**
 * Provides the YoxView Drupal behavior.
 */
Drupal.behaviors.yoxview = {
  attach: function (context, settings) {
    // Apply the YoxView image viewer to the desired elements.
    $('body').once('yoxview').yoxview({
      'backgroundColor' : '#222222',
      'buttonsFadeTime' : 1800 ,
      'skin' : 'top_menu' ,
      'thumbnailsOptions': { 'setTitles': true }
    });
  }
};

})(jQuery);

Any idea(s) how this should be done?

robloach’s picture

What options did you want to add? backgroundColor, buttonsFadeTime, skin and some thumbnailsOptions like "setTitles"? We can add them as settings in the module itself.

robloach’s picture

Title: is there some way to manually add options? » Add some more YoxView options
Version: 7.x-1.2 » 7.x-1.x-dev
Category: support » feature
arx-e’s picture

As show above I found out how to add the backgroundColor, buttonsFadeTime options in the module but the module breaks when I add the skin: "top_menu" option.
Am I doing some syntax error? Could you please point out how this should be done?

sw3b’s picture

have you found a solution to make it work with the skin ?!?

arx-e’s picture

No, I have not. Unfortunately I do not have the knowledge to make it work.
It would be nice to have a complete lightbox solution based on YoxView.

arx-e’s picture

Issue summary: View changes

added original code for reference