csDoctrineSlideshowPlugin
1.1.0stable
for sf 1.2sf 1.1 and Doctrine
MIT
Adds easily-configurable jquery-cycle powered slideshows into your project. Slideshows can be configured entirely in the backend.
Configurables include the transition effect, transition speed, width and height, and others. These can also be set in your app.yml
Supports multiple slideshows for a single application.
Sorting for individual slides can easily be added using csDoctrineActAsSortablePlugin if this is not installed in your project.
Sponsored By Centre{source} interactive agency
Developers
| Name |
Status |
Email |
Brent Shaffer |
lead |
moc.ecruosertnec <<ta>> reffahsb
|
License
Copyright (c) 2009 Brent Shaffer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
csDoctrineSlideshowPlugin
This plugin is for Doctrine only. It provides a Slideshow and Slide object for easy slideshow integration.
How It Works
Configure your slideshow defaults:
all:
slideshow:
defaults:
speed: fast
timeout: 5000
fx: null
renderers:
SlideshowJQueryCycleRenderer: 'JQuery Cycle'
SlideshowGoogleSlideshow2Renderer: 'Google Slideshow 2'
if you want anything different, you can override these settings in your app.yml
Create a slideshow record in the database.
Finally, to include your slideshow, simply include the csSlideshow module in your settings.yml, and then add the component call to your view:
<?php include_component('slideshow', 'slideshow', array()) ?>
By default, the component pulls all slides. If you are targeting a specific slideshow, send the id of the desired slideshow to the component:
<?php include_component('slideshow', 'slideshow', array('id' => 3)) ?>
If you already have your slideshow object instance, you can pass that as well:
<?php include_component('slideshow', 'slideshow', array('slideshow' => $slideshow)) ?>
Likewise, if you have a custom group of slides you'd rather the slideshow use, you can send that as well:
//For use of default slideshow parameters with custom slides
<?php include_component('slideshow', 'slideshow', array('slides' => $slides)) ?>
//For using a specific slideshow parameters with custom slides
<?php include_component('slideshow', 'slideshow', array('slideshow' => $slideshow, 'slides' => $slides)) ?>
Renderers
The plugin currently supports two renderers: JQueryCycle and Google Slideshow2. Each slideshow
renderer comes with its own customizable list of options. These are completely configurable
and easily extensible (see renderer libraries for documented code).
For JQuery Cycle The available options are:
Effects:
- blindX
- growX
- scrollLeft
- zoom
- fade
- turnLeft
- turnDown
- curtainX
- scrollRight
Speed of Effect
Timeout (integer)
For Google Slideshow2 The available options are:
- Thumbnails (True or False) - Show Thumbnails
- Controls (True or False) - Show Controls
- Captions (True or False) - Show Captions
- Paused (True or False) - If the slideshow is paused on load
Slides are added separately, and can then be added to one or more slideshows. They contain fields image, title (alt text), and description (caption).
All of these gracefully degrade, so what is not needed can simply be ignored.
Notes
- All slides are orderable.
- All slideshow images are hashed and saved in the uploads/slideshow directory. To change this, override the getUploadPath() method
in your Slide.class.php
- Javascripts/Styles are automatically included in your component, so editing of your view.yml is not necessary
Please contact bshaffer@centresource.com for any comments or questions
Todo:
add drag-and-drop in the form