You are here

README.txt in RoyalSlider Integration 8

Same filename and directory in other branches
  1. 7 README.txt
This is the Drupal 8 port for the https://drupal.org/project/royalslider project.

//@TODO update all the Readme text to the D8 version.

RoyalSlider
===============
This module provides integration with the excellent RoyalSlider library.

It contains the RoyalSlider module and an implementation for views in the Views Slideshow: RoyalSlider module.

Features of the RoyalSlider module:
 - Configuration stored in exportable "Option Sets" (Configuration Entities)
 - Field formatter for image fields
 - Full support for custom RoyalSlider Skins
 - API functions to manually include the RoyalSlider library and/or option sets and/or skins

Installation
=============
1) Create a directory within this module's js/lib folder named royalslider.
2) Locate/download the RoyalSlider plugin. http://dimsemenov.com/plugins/royal-slider/
3) Upload/install the RoyalSlider plugin: place it inside the royalslider
   directory.
4) Enable the RoyalSlider module
5) You should now see the new display format for image fields called "RoyalSlider"


Requirements
============
* RoyalSlider library

Description
===========

The RoyalSlider module will provide a new field display option for image fields: RoyalSlider.
If you select the display option, you can select which "Option Set" you want to use for that field.
You can configure Option Sets at 'admin/config/media/royalslider'.
For more information about the different options, see the documentation of RoyalSlider: http://dimsemenov.com/plugins/royal-slider/documentation/


Manually initialize example usage
===========

(function ($) {
  Drupal.behaviors.yourModuleTheme = {
    attach: function (context, settings) {

      if (myCustomConditions) {
        if (settings.royalslider) {
          if (settings.royalslider.instances) {
            for (var id in settings.royalslider.instances) {
              var $slider = $('#' + id, context),
                optionset_name = settings.royalslider.instances[id].optionset,
                optionset = settings.royalslider.optionsets[optionset_name];

              // Manually initialize.
              if (optionset.manuallyInit) {
                $slider.royalSlider(optionset);
              }
            }
          }
        }
      }

    }
  };
})(jQuery);


Authors/maintainers
===================

Original Author:

Alex Weber
http://drupal.org/user/850856

Co-maintainers:

thijsvdanker
http://drupal.org/user/234472/dashboard


Support
=======

Issues should be posted in the issue queue on drupal.org:

https://drupal.org/project/issues/royalslider

File

README.txt
View source
  1. This is the Drupal 8 port for the https://drupal.org/project/royalslider project.
  2. //@TODO update all the Readme text to the D8 version.
  3. RoyalSlider
  4. ===============
  5. This module provides integration with the excellent RoyalSlider library.
  6. It contains the RoyalSlider module and an implementation for views in the Views Slideshow: RoyalSlider module.
  7. Features of the RoyalSlider module:
  8. - Configuration stored in exportable "Option Sets" (Configuration Entities)
  9. - Field formatter for image fields
  10. - Full support for custom RoyalSlider Skins
  11. - API functions to manually include the RoyalSlider library and/or option sets and/or skins
  12. Installation
  13. =============
  14. 1) Create a directory within this module's js/lib folder named royalslider.
  15. 2) Locate/download the RoyalSlider plugin. http://dimsemenov.com/plugins/royal-slider/
  16. 3) Upload/install the RoyalSlider plugin: place it inside the royalslider
  17. directory.
  18. 4) Enable the RoyalSlider module
  19. 5) You should now see the new display format for image fields called "RoyalSlider"
  20. Requirements
  21. ============
  22. * RoyalSlider library
  23. Description
  24. ===========
  25. The RoyalSlider module will provide a new field display option for image fields: RoyalSlider.
  26. If you select the display option, you can select which "Option Set" you want to use for that field.
  27. You can configure Option Sets at 'admin/config/media/royalslider'.
  28. For more information about the different options, see the documentation of RoyalSlider: http://dimsemenov.com/plugins/royal-slider/documentation/
  29. Manually initialize example usage
  30. ===========
  31. (function ($) {
  32. Drupal.behaviors.yourModuleTheme = {
  33. attach: function (context, settings) {
  34. if (myCustomConditions) {
  35. if (settings.royalslider) {
  36. if (settings.royalslider.instances) {
  37. for (var id in settings.royalslider.instances) {
  38. var $slider = $('#' + id, context),
  39. optionset_name = settings.royalslider.instances[id].optionset,
  40. optionset = settings.royalslider.optionsets[optionset_name];
  41. // Manually initialize.
  42. if (optionset.manuallyInit) {
  43. $slider.royalSlider(optionset);
  44. }
  45. }
  46. }
  47. }
  48. }
  49. }
  50. };
  51. })(jQuery);
  52. Authors/maintainers
  53. ===================
  54. Original Author:
  55. Alex Weber
  56. http://drupal.org/user/850856
  57. Co-maintainers:
  58. thijsvdanker
  59. http://drupal.org/user/234472/dashboard
  60. Support
  61. =======
  62. Issues should be posted in the issue queue on drupal.org:
  63. https://drupal.org/project/issues/royalslider