Hi,

Does anybody know how I can get numbers instead of bullets under my Views Nivo Slider?? I would like it that you can see on which slide you're on. Like with the bullets. I really hope someone can help me!

Thanks,
Fleur

Comments

edrupal’s picture

Hi,
If you use something like Firebug you'll find the style:

.nivo-controlNav a {
    background: url("bullets.png") no-repeat scroll 0 0 transparent;
    border: 0 none;
    display: block;
    float: left;
    height: 10px;
    margin-right: 3px;
    text-indent: -9999px;
    width: 10px;
}

If you override the background, and text-indent elements you'll see the numbers instead of bullets. Something like

.nivo-controlNav a {
    background: none repeat scroll 0 0 transparent;
    text-indent: 0;
}

Cheers, Ed

fleurlinde’s picture

Thank you so much! It works!
Only Drupal starts apparently with the number '0'. Do you maybe know if it is possible to change this into a '1'?

Thanks!
Fleur

edrupal’s picture

Hi,
On my site the count starts at 1. Not sure what's happening fr you.
Sorry,
Ed

jncruces’s picture

Hi,

I have the same problem, my start number in the pager is 0 instead 1. I don't know what i have to change.

I have tried to add this lines to "template_preprocess_views_nivo_slider_view_nivo_sliderfields" in "views_nivo_slider.module" but no result.

  foreach ($view->field as $id => $field) {
    $field_output = $view->field[$id]->theme($vars['row']);

    switch ($id) {
    case $options['image_field']:
      $image_url = $field_output;
      break;
    case $options['title_field']:
      $title = $field_output;
      break;
    case $options['link_field']:
      if ($field->definition['handler'] != 'views_handler_field_node_link') {
        $link = check_url($field_output);
      }
      break;
    case $style['controlNavThumbsField']:
      if ($style['controlNav'] == 'thumbsField') {
        if (!empty($style['controlNavThumbsICField'])) {
          $turl = imagecache_create_url($style['controlNavThumbsICField'], 
                                                                      $field_output);
        }
        else {
          $turl = $field_output;
        }
        $attributes = array('rel' => $turl);
      }
+++      if ($style['controlNav'] == 'basic') {
+++	            $vars['row_index']++;
+++      }
      break;
    }
  }

I'm sure that these is the correct position to modify it but i don't know what i have to change, I studied $vars and $view variables of this function but it's too long to read and extract the correct sub-var.

Greetings.

jncruces’s picture

Sorry, i need to know how to increase the number of the list in the slider.

If someone knows how to fix it please help me.

The number starts at 0 but i need (logic) that start at 1. Read my previous post, please.

Thanks.

rakhimandhania’s picture

I want to use images in the pager instead of bullets in Views Nivo slideshow. How can i do that?

jncruces’s picture

I think your solution is easy, only use CSS to replace the numbers with images. If you need thumbnails of the presentation it's more difficult.