Closed (fixed)
Project:
Carousel
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2008 at 21:26 UTC
Updated:
28 Nov 2010 at 19:02 UTC
Allow alternative skins to be set through the view....
For example, you create a View, and then change the skin by putting the following into the argument handling code:
$view->jcarousel['skin'] = array(
'name' => 'myskin',
'css' => drupal_get_path('theme', 'mytheme') . '/jcarousel/myskin.css',
'js' => drupal_get_path('theme', 'mytheme') . '/jcarousel/myspecialjavascriptforthecarousel.js',
);
This will load the correct CSS, apply the correct name, as well as load the special Javascript when passed.... The attached is the patch that allows this. If the jcarousel['skin'] parameter isn't set, the default is used.
| Comment | File | Size | Author |
|---|---|---|---|
| carousel_alternate_skins.patch | 1.03 KB | robloach |
Comments
Comment #1
robloachThis could also tie into $view->jcarousel['settings'].......
Comment #2
owahab commentedThis patch looks quite good but I am not sure this is the best fix for theming carousel views.
Comment #3
quicksketchClosing the issue queue.