You are here

README.txt in Views Slideshow Xtra 7.2

Same filename and directory in other branches
  1. 8.4 README.txt
  2. 6.3 README.txt
  3. 7.3 README.txt
  4. 7 README.txt
README.txt for the Views Slideshow Xtra (VSX) Module 


Overview
--------

The Views Slideshow Xtra module provides an easy way to place HTML elements
(text, links, icons, etc) on top of a Views Slideshow.  The HTML elements are placed in 
<div> overlays, with element's visiblity controlled by setting the  
CSS 'display' property, so that elements are displayed with their corresponding slide.
There are two types of overlays: one that is always present, and another that is
invoked as a popup lightbox.

The elements are created by entering JSON formatted data in a special multi-value
text field for each slide node.  Each field's JSON object creates a single slide overlay element. 

There is an example implementation of this module at http://drupalanswer.com/vsx7.  This
page has two examples on one page, demonstrating that multiple slideshows may be on a single page.

The Views Slideshow Xtra Example module included as part of this project creates  
an example content type and example slide nodes, so you may easily create a working
Views Slideshow Xtra slideshow.


Installation
------------

1.  Download and extract to your modules directory the following modules:
    colorbox, ctools, libraries, views, views_slideshow, views_slideshow_xtra.

2.  Download the Cycle plugin from http://malsup.com/jquery/cycle/download.html and
    extract into the directory /sites/all/libraries/jquery.cycle.
    All files except jquery.cycle.all.min.js may be deleted.

3.  Download the ColorBox plugin from http://colorpowered.com/colorbox to
    /sites/all/libraries and extract (this will create the child directory
    /sites/all/libraries/colorbox).

4.  Enable the following modules: colorbox, ctools, libraries, views, views ui,
	  views_slideshow, views_slideshow_cycle, views_slideshow_xtra.
   
5.  Go to Configuration -> Media: Colorbox and check the "Enable Colorbox load" checkbox
    and save the setting.

6.  If a working example is desired, enable the Views Slideshow Xtra Example module.
    Enabling the VSX Example module creates an example slide content type. To create
    example slide nodes, go to Toolbar >> Configuration >> Views Slideshow Xtra >> Example Nodes.
    
    Note: Uninstall capability was purposely omitted from the VSX Example module,
    with the idea that users could install the module and then use the custom content type for
    their own slideshow, after deleting the 3 example nodes. Thus, uninstalling the VSX Example
    module does not delete the example nodes or example content type. They may be manually
    deleted from Configuration >> Views Slideshow Xtra >> Example Nodes and
    Toolbar >> Structure >> Content types.


Creating a VSX Slideshow View
-----------------------------

1.  Select Structure => Views and click "Add new view".

2.  Input View name.  Show "Content" of type "Your Slideshow Content Type" ("Views Slideshow Xtra" if 
    configuring a View using the content type created by the VSX Example module).

3.  Leave "Create a page" checked, and select Display form at "Slideshow" of "fields", uncheck "Use a pager", 
    and click "Continue and Edit" to create the View.

4.  Click Fields => add.  Search "image" and check your image field ("Views Slideshow Slide Image"
    if configuring a View  using nodes created by the Views Slideshow Xtra Example module).  Click
    "Add and Configure Fields".  Uncheck "Create a label", and select the appropriate Image style
    (select "None (original image)" if configuring the field from the VSX Example module), and then click
    "Apply (all displays)".

5.  Click Fields => add.  Search for your VSX JSON field ("Views Slideshow Xtra Overlay Elements" 
    if configuring a View using nodes created by the Views Slideshow Xtra Example module)and check it, and click
    "Add and Configure Fields".  Uncheck "Create a label", check "Exclude from display", and then click
    "Apply (all displays)".
    
6.  Click the Title field and remove it.

7.  Save the View and make sure it is functioning as a standard Views Slideshow by clicking "Update Preview".
    If configurating a View using the slide nodes created by the VSX Example module,
    you should have a working slideshow of three slides.

8.  In the Format section, click the Settings link.  In the "Top Widgets" section, check the "Views Slideshow Xtra" 
    checkbox, then in the "Fields" section, check your VSX Overlay field ("Views Slideshow Xtra Overlay Elements" if
    using the content type created by Views Slideshow Xtra Example), and then click "Apply (all displays)".
    
9.  Save the View and make sure it is functioning as a VSX Slideshow by clicking "Update Preview".  If your
    View is using the slide nodes created by the Views Slideshow Xtra Example module, you should have a working VSX
    slideshow with Text and Link overlay elements visible on the slides.


View Format: Slideshow Settings
-------------------------------

In the View's Format: Slideshow Settings configuration, the following settngs are available:

Display Delay: Delay in miliseconds before the overlay elements are displayed.  This may
help avoid issues with font pixelation in IE that may occur when text is located in an area
where a jQuery Cycle transition takes place.

Fade In: Check this setting to have the elements fade in.

Pause on Mouse Movement:  Whenever the mouse is moved over the slideshow, the show is paused
for the specified number of milliseconds. This may be needed to prevent the situation where a
user moves the mouse pointer towards a VSX link and the slide transitions before the user is able
to click the link.  As long as the mouse is moving, the slides will not transition for the specified
number of milliseconds.


Supported JSON Types
--------------------

In the Views Format/Slideshow/Settings configuration, check the fields that are "VSX" fields.

These should be multi-valued text fields containing JSON formatted object notation as follows: 

1. Text Element

Example: {"type":"text", "top": 50, "left": 50, "text":"Text Element 1", "styles":"color: yellow", "classes":"class1 class2..."}
Template: views-slideshow-xtra-text.tpl.php

2. Link

Example: {"type":"link", "top": 50, "left": 50, "text":"Link to Drupal.org", "url": "http://drupal.org", "styles":"color: yellow", "classes":"class1 class2..."}
Template: views-slideshow-xtra-link.tpl.php

3. Lightbox Link (invokes popup lightbox)
(NOT YET FULLY WORKING IN D7)

4. Image

Example: {"type":"image", "top": 50, "left": 50, "url": "http://drupal.org", "classes":"class1 class2...", "src":"/path/to/image", "target": "_blank"}
Template: views-slideshow-xtra-image.tpl.php

Supported JSON Properties
------------------------- 

The following JSON properties are available:

"type": "text", "link" or "image" 
The overlay element type, currently "text", "link" and "image" are supported.  This property value
determines which template is used, e.g. views-slideshow-xtra-text.tpl.php for "type":"text". 

"text": "text string"
This specifies the text of either a text object or a link.  Template variable:  $text.

"top": <value in pixels>
Creates an inline CSS style for the element's DIV container: style = "top: <value in pixels>px".

"left": <value in pixels>
Creates an inline CSS style for the element's DIV container: style = "left: <value in pixels>px"

"styles": <style pairs>
Creates an inline CSS style for the element's DIV container: style = "style pairs".  It is best
not to use this property, but rather to use "classes" as explained below.  Template variable: $styles.

"classes": <class1 class2 ... >
Creates a CSS class attribute for the element's DIV container: class = "class1 class2 ... ".  This
is the preferred way to style overlay elements, as style settings used by multiple overlay elements
can be changed in a single location (in your stylesheet). The VSX Example module includes examples
that use custom styles.  Template variable: $classes.

"url": <url>
Specifies the href URL for an anchor tag.  Template variable: $url.

"target": <url>
Specifies the target for an anchor tag.  Template variable: $target.

"src": <url>
Specifies the src attribute for an image tag.  Template variable: $src.
  

Custom VSX Properties
---------------------

It is possible to create a custom VSX property, for example "myproperty":"somevalue".  The custom property's
value is available in the template throught the $vsx template variable, e.g. $vsx['myproperty'].


Stylesheet
----------

To fine tune your slideshow, you will need to override some of the CSS rules found in 
views-slideshow-xtra.css, located in the module directory.  Don't change views-slideshow-xtra.css,
but rather override its CSS rules as required in your theme's CSS files.


Popup Lightbox
--------------

(NOT YET FULLY WORKING IN D7)
Layout of the lightbox fields is controlled by rules in views-slideshow-xtra.css. The default 
layout has the title across the top and lightbox text and video floated left below the title. You can 
change this by overriding the floats, heights, padding, etc. found in views-slideshow-xtra.css.


Slideshow Mask
--------------

(NOT YET SUPPORTED IN D7)
To put a mask over the slideshow, apply a background image to the div with class 
".views-slideshow-xtra-overlay".

File

README.txt
View source
  1. README.txt for the Views Slideshow Xtra (VSX) Module
  2. Overview
  3. --------
  4. The Views Slideshow Xtra module provides an easy way to place HTML elements
  5. (text, links, icons, etc) on top of a Views Slideshow. The HTML elements are placed in
  6. overlays, with element's visiblity controlled by setting the
  7. CSS 'display' property, so that elements are displayed with their corresponding slide.
  8. There are two types of overlays: one that is always present, and another that is
  9. invoked as a popup lightbox.
  10. The elements are created by entering JSON formatted data in a special multi-value
  11. text field for each slide node. Each field's JSON object creates a single slide overlay element.
  12. There is an example implementation of this module at http://drupalanswer.com/vsx7. This
  13. page has two examples on one page, demonstrating that multiple slideshows may be on a single page.
  14. The Views Slideshow Xtra Example module included as part of this project creates
  15. an example content type and example slide nodes, so you may easily create a working
  16. Views Slideshow Xtra slideshow.
  17. Installation
  18. ------------
  19. 1. Download and extract to your modules directory the following modules:
  20. colorbox, ctools, libraries, views, views_slideshow, views_slideshow_xtra.
  21. 2. Download the Cycle plugin from http://malsup.com/jquery/cycle/download.html and
  22. extract into the directory /sites/all/libraries/jquery.cycle.
  23. All files except jquery.cycle.all.min.js may be deleted.
  24. 3. Download the ColorBox plugin from http://colorpowered.com/colorbox to
  25. /sites/all/libraries and extract (this will create the child directory
  26. /sites/all/libraries/colorbox).
  27. 4. Enable the following modules: colorbox, ctools, libraries, views, views ui,
  28. views_slideshow, views_slideshow_cycle, views_slideshow_xtra.
  29. 5. Go to Configuration -> Media: Colorbox and check the "Enable Colorbox load" checkbox
  30. and save the setting.
  31. 6. If a working example is desired, enable the Views Slideshow Xtra Example module.
  32. Enabling the VSX Example module creates an example slide content type. To create
  33. example slide nodes, go to Toolbar >> Configuration >> Views Slideshow Xtra >> Example Nodes.
  34. Note: Uninstall capability was purposely omitted from the VSX Example module,
  35. with the idea that users could install the module and then use the custom content type for
  36. their own slideshow, after deleting the 3 example nodes. Thus, uninstalling the VSX Example
  37. module does not delete the example nodes or example content type. They may be manually
  38. deleted from Configuration >> Views Slideshow Xtra >> Example Nodes and
  39. Toolbar >> Structure >> Content types.
  40. Creating a VSX Slideshow View
  41. -----------------------------
  42. 1. Select Structure => Views and click "Add new view".
  43. 2. Input View name. Show "Content" of type "Your Slideshow Content Type" ("Views Slideshow Xtra" if
  44. configuring a View using the content type created by the VSX Example module).
  45. 3. Leave "Create a page" checked, and select Display form at "Slideshow" of "fields", uncheck "Use a pager",
  46. and click "Continue and Edit" to create the View.
  47. 4. Click Fields => add. Search "image" and check your image field ("Views Slideshow Slide Image"
  48. if configuring a View using nodes created by the Views Slideshow Xtra Example module). Click
  49. "Add and Configure Fields". Uncheck "Create a label", and select the appropriate Image style
  50. (select "None (original image)" if configuring the field from the VSX Example module), and then click
  51. "Apply (all displays)".
  52. 5. Click Fields => add. Search for your VSX JSON field ("Views Slideshow Xtra Overlay Elements"
  53. if configuring a View using nodes created by the Views Slideshow Xtra Example module)and check it, and click
  54. "Add and Configure Fields". Uncheck "Create a label", check "Exclude from display", and then click
  55. "Apply (all displays)".
  56. 6. Click the Title field and remove it.
  57. 7. Save the View and make sure it is functioning as a standard Views Slideshow by clicking "Update Preview".
  58. If configurating a View using the slide nodes created by the VSX Example module,
  59. you should have a working slideshow of three slides.
  60. 8. In the Format section, click the Settings link. In the "Top Widgets" section, check the "Views Slideshow Xtra"
  61. checkbox, then in the "Fields" section, check your VSX Overlay field ("Views Slideshow Xtra Overlay Elements" if
  62. using the content type created by Views Slideshow Xtra Example), and then click "Apply (all displays)".
  63. 9. Save the View and make sure it is functioning as a VSX Slideshow by clicking "Update Preview". If your
  64. View is using the slide nodes created by the Views Slideshow Xtra Example module, you should have a working VSX
  65. slideshow with Text and Link overlay elements visible on the slides.
  66. View Format: Slideshow Settings
  67. -------------------------------
  68. In the View's Format: Slideshow Settings configuration, the following settngs are available:
  69. Display Delay: Delay in miliseconds before the overlay elements are displayed. This may
  70. help avoid issues with font pixelation in IE that may occur when text is located in an area
  71. where a jQuery Cycle transition takes place.
  72. Fade In: Check this setting to have the elements fade in.
  73. Pause on Mouse Movement: Whenever the mouse is moved over the slideshow, the show is paused
  74. for the specified number of milliseconds. This may be needed to prevent the situation where a
  75. user moves the mouse pointer towards a VSX link and the slide transitions before the user is able
  76. to click the link. As long as the mouse is moving, the slides will not transition for the specified
  77. number of milliseconds.
  78. Supported JSON Types
  79. --------------------
  80. In the Views Format/Slideshow/Settings configuration, check the fields that are "VSX" fields.
  81. These should be multi-valued text fields containing JSON formatted object notation as follows:
  82. 1. Text Element
  83. Example: {"type":"text", "top": 50, "left": 50, "text":"Text Element 1", "styles":"color: yellow", "classes":"class1 class2..."}
  84. Template: views-slideshow-xtra-text.tpl.php
  85. 2. Link
  86. Example: {"type":"link", "top": 50, "left": 50, "text":"Link to Drupal.org", "url": "http://drupal.org", "styles":"color: yellow", "classes":"class1 class2..."}
  87. Template: views-slideshow-xtra-link.tpl.php
  88. 3. Lightbox Link (invokes popup lightbox)
  89. (NOT YET FULLY WORKING IN D7)
  90. 4. Image
  91. Example: {"type":"image", "top": 50, "left": 50, "url": "http://drupal.org", "classes":"class1 class2...", "src":"/path/to/image", "target": "_blank"}
  92. Template: views-slideshow-xtra-image.tpl.php
  93. Supported JSON Properties
  94. -------------------------
  95. The following JSON properties are available:
  96. "type": "text", "link" or "image"
  97. The overlay element type, currently "text", "link" and "image" are supported. This property value
  98. determines which template is used, e.g. views-slideshow-xtra-text.tpl.php for "type":"text".
  99. "text": "text string"
  100. This specifies the text of either a text object or a link. Template variable: $text.
  101. "top":
  102. Creates an inline CSS style for the element's DIV container: style = "top: px".
  103. "left":
  104. Creates an inline CSS style for the element's DIV container: style = "left: px"
  105. "styles":