Links on Images

Permalink Browser Info Environment
How do I enable the images to be links? I added URL's in the "Link URL" field for each image but none of them are clickable.

Type: Discussion
Status: New
ideasponge
View Replies:
ideasponge replied on at Permalink Reply
ideasponge
I added a fix for this.

Find the line that looks like this
$objFile = File::getByID( $objImage['fID'] );

and change it to this
$link = '';
         $objFile = File::getByID( $objImage['fID'] );
         if($objImage['url'])
            $link = ' data-link="'.$objImage['url'].'"';


Then make the div with the data in it look like this
<div data-thumb='<?php    echo $objFile->getRelativePath( ) ?>' data-src="<?php      echo $objFile->getRelativePath( )?>"<?php echo $link?>></div>


And the camera.js file will handle the rest.

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.