Closed (fixed)
Project:
Featured Content Slider
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2009 at 20:02 UTC
Updated:
9 May 2010 at 14:20 UTC
The Javascript and CSS files (contentslider.css and contentslider.js) don't seem to load under certain circumstances. For example, I have a few domains that use the same page, code, and database.
* www.ucioutreachclinics.org - CSS and JS loads properly and content appears.
* ucifreeclinic.org - CSS and JS loads properly and content appears.
* www.ucifreeclinic.org - CSS and JS do NOT load and nothing appears. (I fixed this now with the solution below.)
Moving lines 144-145:
drupal_add_css(drupal_get_path('module', 'content_slider') . '/contentslider.css');
drupal_add_js(drupal_get_path('module', 'content_slider'). '/contentslider.js');
to an implementation of hook_init() at the end seems to resolve this issue:
function content_slider_init() {
drupal_add_css(drupal_get_path('module', 'content_slider') . '/contentslider.css');
drupal_add_js(drupal_get_path('module', 'content_slider'). '/contentslider.js');
}
}
Comments
Comment #1
sudeepg commentedFixed in new release.