Adding image description and url to lightbox

Permalink Browser Info Environment
Hi I was hoping someone maybe able to point me in the direction of adding the images description in the properties to the lightbox layout, i'd also want a auto link created from the appropriate custom attribute... any help greatly welcome :)

ie. At present it reads:

The Giant Bat
Image 1 of 30

i'd like it to read:

The Giant Bat (title attribute)
This is a rare species of flying mammal, blah blah blah.... (description attribute if available)
To read more click here (links to url attribute if available)
Image 1 of 30

Type: Discussion
Status: New
BHWW
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi,
The lightbox library used in this case is:http://leandrovieira.com/projects/jquery/lightbox/...
It's pretty simple, so you can't extend it too much. But if you wanted to add the image description to the title you can edit line 135 on the view.php file within Mosaic Gallery to change this:
$fv->getTitle()


to this:
$fv->getTitle() . '<BR>' . $fv->getDescription()


If you're familiar with C5/PHP, you can use the same thing to also add a link in using a custom page attribute.

Hope this helps.

JB

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.