Skip to content

Instantly share code, notes, and snippets.

@pigeonflight
Last active October 26, 2017 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pigeonflight/1705a4a6cf8060174b198beeb71e4f92 to your computer and use it in GitHub Desktop.
Save pigeonflight/1705a4a6cf8060174b198beeb71e4f92 to your computer and use it in GitHub Desktop.
Example 1 - Code for a carousel on Plone 5

Overview

This demo shows the use of jcarousel with Plone, it also provides a useful example for using the tag method for generating image tags from Plone images in a python script.

Assumptions

  • You have rapido plone installed and this application is installed in your theme under the folder rapido/app/carousel/blocks
  • You have a folder of images in the root of your site called "carousel"

Usage

The yaml file is used to define a view called "carousel-view". Once you've created your "carousel" folder in the root of your site and installed these files under rapido/app/carousel/blocks in your theme, you should be able to view the carousel at {yoursite.com}/carousel-view

Note: For my needs I create a folder and then adjust my script to read the carousel information from that folder. The css is embedded directly into the page template, this is purely for convience.

Next Steps

For more power, create a custom content type using dexterity and give it the ability to include a link (then you can tweak the slideshow to allow links from each image)

This could be modified to be a file system product.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment