Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently all control navigator with thumbnail option are not styled properly. Need to provide a sensible default layout and css.
Comments
Comment #1
Sylense CreditAttribution: Sylense commented+1
Comment #2
Sylense CreditAttribution: Sylense commentedFor anyone that's trying to get this to work instead of relying on this module I simply used the Nivo Slider plugin in combination with image fields, views, and templates. Took a little bit of doing but I was able to get it to work flawlessly.
Comment #3
ginga8 CreditAttribution: ginga8 commentedDo you mind posting details on how exactly you did this. I am interested but not having any luck.
Thanks
Comment #4
Sylense CreditAttribution: Sylense commented- Add the Nivo javascript files to YOUR_THEME/js
- Be sure to add them to YOUR_THEME.info
e.g.
scripts[] = js/jquery.nivo.slider.js
scripts[] = js/jquery.nivo.slider.pack.js
- I created a new content type (name it whatever you like)
- Added 2 image fields: Photo and Thumbnail
- Change the file directory of the Photo field to "slider" and the Thumbnail field to "slider/thumbs"
- Created a view (you can use my export below)
Then it took a little bit of template theming. Be sure to have the following template files copied from the fields and views modules:
- field.tpl.php
- views-view-unformatted.tpl.php
- views-view.tpl.php
-
I changed my view template "views-view--custom-nivo-slider--block.tpl.php"
And "views-view-unformatted--custom-nivo-slider--block.tpl"
Then in my content type under Manage Display I have added my "Custom Nivo Slider" block I created in views as a block field titled "Custom Nivo Slider" and changed its template "field--custom-nivo-slider.tpl.php" to
There are alot of steps and I hope I didn't leave any out but that's how I was able to accomplish it. I was able to have a nivo slider in the content area of my nodes. It took quite a bit of theming however, since you can't have any additional markup inside of the slider or it will break according to Nivo's documentation.
Hope that helps and wasn't too difficult to follow. I suck at giving instructions
*edit: Be sure that the photos you upload for the "Photo" and "Thumbnail" field have the same filename. Once uploaded your original photos should be in the "/sites/default/files/slider" directory and thumbnail photos should be in the "/sites/default/files/slider/thumbs" directory.
Comment #5
ginga8 CreditAttribution: ginga8 commentedThanks for your help, but when I tried to follow your instructions I am still unable to get it to work.
My site is at www.shawnbanks.com and the page I have the block on is www.shawnbanks.com/node/14
Comment #6
ckngWould not recommend following Sylense's steps if you plan to use this module. That's custom integration.
@Sylense, please post your steps to forum and marked it clearly as such that not related to this module. It is creating confusion to other users.
Do not have time at the moment to work on this, maybe next month.
Comment #7
DjebbZ CreditAttribution: DjebbZ commentedI have the same problem on D6.
I think what's needed is :
1) to have sensible defaults (maybe 50px * 50px ?)
2) to dynamically create the css in a template file and assigning the width and length of
.nivocontrolNav a
according the ImageCache (D6) / Image Style (D7) used to generate the thumbnails.Something I don't understand is that in the demo site (http://www.lunarclips.com/nivoslider-thumbnails), the thumbnails have the proper style. But the settings seem different. The Nivo slider css (default.css) comes from the sites/all/libraries folders, and it's overridden with the proper size in the Nivo module itself, in thumbnails.css. They use 50px square thumbnails. Does it mean these dimensions are hardcoded in the module's css file for D7 ? And not overridden in the D6 version ?
Comment #8
XerraX CreditAttribution: XerraX commentedsame problem here on D7 dev environment
Comment #9
ckngFixed in latest 7.x-3.x branch.
Comment #10
ckng