Download & Extend

Disabling "image 1" "image 2" etc. after the title in Shadowbox

Project:Gallery formatter
Version:7.x-1.0
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I don't know if it does this for other image viewers, but I don't know how to disable this. I'm using Shadowbox. See attachment for an example.

Anyone know how to remove this?

I'm also stuck on how to instead get the title of the image to show up at the top when in this full-image mode.

AttachmentSize
title.png1.4 MB

Comments

#1

Project:Gallery formatter» Shadowbox
Version:7.x-1.0» 7.x-4.x-dev

This is an issue for the shadowbox project

#2

Project:Shadowbox» Gallery formatter
Version:7.x-4.x-dev» 7.x-1.0

Shadowbox uses the title attribute of the A HTML tag as the title shown above the image. For instance:

<a href="largeImage.jpg" rel="shadowbox" title="Title attribute in A tag" ><img src="thumbnailImage.jpg" title="Title attribute in Img tag" alt="Alt attribute in Img tag"></a>

will output "Title attribute in A tag" as title.

Shadowbox formatter does not add any text itself at all. It outputs whatever you configure to be used as title: the image title, the image alt, the node title. It does not add anything at all to those, not any "image #" added by shadowbox at all. So for example if you have an image with title="My image title", alt="My image alt" on a node "My node title". And you choose to use the alt as shadowbox title then the formatter output will be:

<a href="largeImage.jpg" rel="shadowbox" title="My image alt" ><img src="thumbnailImage.jpg" title="My image title" alt="My image alt"></a>

If you choose to use the image title as shadowbox title then the formatter output will be:

<a href="largeImage.jpg" rel="shadowbox" title="My image title" ><img src="thumbnailImage.jpg" title="My image title" alt="My image alt"></a>

If you choose to use the node title as shadowbox title then the formatter output will be:

<a href="largeImage.jpg" rel="shadowbox" title="My node title" ><img src="thumbnailImage.jpg" title="My image title" alt="My image alt"></a>

So, Shadowbox is not appending that "image #" to the title. It must be the user himself or any other module adding that. Probably would be of help an URL where to look at the HTML output if anyone want to review were the problem comes from. If someone is appending that "Image #" at the end of the A HTML tag title attribute that's the one making that issue arise.

Sorry but this is not shadowbox issue unless it is a misunderstood of where it is getting the title from and actually the user himself setting the wrong title.

Feel free to move this back to shadowbox if gallery formatter is not appending that "Image #" either to A HTML tag title attribute. Then I will mark this as fixed because there is nothing more to do with the issue than what it is explained above of how shadowbox works.

#3

The same thing happens in lightbox but only with Gallery formatter, not if using Brilliant Galleries. If anyone has found where to set it in Gallery formatter, I'd like to know as well.

Sharon

#4

I was going to make a patch to solve this but when I checkedout the 7.x-1.x development version I have seen it is already solved in that version.

Just use that development version instead of the 7.x-1.0 version and the problem would be solved.

Don't know why developer has not released a new version yet but seems solved at least since November.

nobody click here