It would be nice to be able to link the Title text or rewrite it with html if i choose to.
Is the following absolutely necessary?

views_nivo_slider.module ~line 95

// Title field formats
...
$view->field[$options['title_field']]->options['alter']['strip_tags'] = 1;

Comments

pedrofaria’s picture

Hello Chris,

I guess that your request will bring more problems than benefits...

The title box is setup as HTML tag parameter.

Eg.:

<img src=... title="text for title"/>

Now, you can see the problem?

Cya...

Christopher Herberte’s picture

I see the problem looking at the source, module is using selected field (node title) in alt and title attributes too. Title field or "nivo-caption" should allow html stripping before being used as attributes. Seems less intuitive if the caption does not link too.

Without going to too much trouble, is this something you see as possible?

Thanks, Chris.

Christopher Herberte’s picture

maybe..

line 108

$clean_title = strip_tags($title);
$img = theme('imagecache' , $presetname , $thumbnail_url, $clean_title, $clean_title, NULL, TRUE);
Christopher Herberte’s picture

Status: Active » Closed (fixed)

Forget it, nivo works that way (#1). Would not be possible.

blackstallion’s picture

To include html links in image titles here's what I have done on www.muet.edu.pk/imtic
In views fields I have added both content: image and content: image-data. I have excluded the content:image-data from display and selected title as data key. In basic settings of the view I have set the style to 'views nivo slider' but switched the row style from 'views nivo slider' to 'fields'
And thats it. Now it allows the anchor links in title.