Integration of Cycle2 jQuery plugin in Plone.
Project description
Life, the Universe, and Everything
Cycle2 is a versatile slideshow plugin for jQuery built around ease-of-use. It supports a declarative initialization style that allows full customization without any scripting. Simply include the plugin, declare your markup, and Cycle2 does the rest.
This package adds a browser resource to use Cycle2 and its plugins on a Plone site.
Mostly Harmless
Don’t Panic
Installation
To enable this package in a buildout-based installation:
Edit your buildout.cfg and add add the following to it:
[buildout] ... eggs = collective.js.cycle2
After updating the configuration you need to run ‘’bin/buildout’’, which will take care of updating your system.
Usage
If your page template inherits from main_template, just include the resources on it by usign the following syntax:
<metal:block fill-slot="javascript_head_slot"> <script src="++resource++collective.js.cycle2/jquery.cycle2.min.js" tal:attributes="src string:$portal_url/++resource++collective.js.cycle2/jquery.cycle2.min.js"></script> </metal:block>
Alternatively you can add them into your site’s JavaScript Registry directly or by using GenericSetup:
<?xml version="1.0"?> <object name="portal_javascripts"> <javascript cacheable="True" compression="none" cookable="True" enabled="True" id="++resource++collective.js.cycle2/jquery.cycle2.min.js" /> </object>
Plugins
The package also includes the code for the following plugins:
- Transition
Carousel
Flip
IE-Fade
ScrollVert
Shuffle
Tile
- Functional
Caption2
Center
Swipe
YouTube
Check Cycle2 download page for more information.
Not entirely unlike
- collective.js.galleria
Galleria is a JavaScript image gallery framework built on top of the jQuery library. The aim is to simplify the process of creating professional image galleries for the web and mobile devices.
Changelog
There’s a frood who really knows where his towel is.
1.0b1 (2015-05-27)
Remove browser layer and JS resource registry registrations. Include all Cycle2 and plugins code as browser resources (closes #1). [rodfersou]
1.0a1 (2014-10-20)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.js.cycle2-1.0b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 489041eb5b921dd2111da573bc38cc4f52b6fc0f38758bfb9ac9c293dd0b5715 |
|
MD5 | eca7786946275675002e52d099cc72c7 |
|
BLAKE2b-256 | e3e981c63158ae251b8490c0c063488a4958f687c3a4fd95f4076f2e8083500f |