Slide show linking to images

Permalink
I have just noticed that the standard slide show block in C5.6.0.2 creates a click-able link to the image file if they are inserted using "Pictures from file set" option. This does not happen if you select the images using Custom slide show.
Can anyone tell me what I need to change to stop these links?

Thanks

cmerritt
 
anchoredbutterfly replied on at Permalink Best Answer Reply
anchoredbutterfly
In the block's view.php file, on line 92 change the row
url:"<?php echo $imgInfo['url']?>",

to
url:"",


Don't forget to clear your website cache to show the change.
cmerritt replied on at Permalink Reply
cmerritt
Copied the view.php to '[root]/blocks/slideshow' and changed the code.

Thanks for that.
anchoredbutterfly replied on at Permalink Reply
anchoredbutterfly
Quite welcome :)
mhawke replied on at Permalink Reply
mhawke
Just a reminder that if you modify core files (those files under '[root]/concrete') then your modification will be over-written the next time you upgrade to a new version of concrete5. To avoid this, just copy the view.php from '[root]/concrete/blocks/slideshow' and save your modified file in '[root]/blocks/slideshow'. If you do this, you will have to temporarily turn off the C5 'Overrides' cache to make sure C5 can find your modified file. After it finds it once, you can turn the 'overrides' cache back on.