Page List on Slate; behavior on clicking on images

Permalink Browser Info Environment
When using Page List on Slate, and when an image is clicked, the image will pop up in a larger size. Typically, the page thumbnail images are chosen so that they are discernible in small size and this function is unnecessary. I'd rather have the image to jump to the assigned page.

Can that be changed in the next version, and since I'd rather change it now, can you provide a patch or even just a pointer (filename and line number) to look into?

I think unnecessary interactions can hurt the visitor attention, especially on mobile terminals.

Thanks!

Type: Discussion
Status: New
RyujiS
View Replies:
c5mix replied on at Permalink Reply
c5mix
No, I won't be changing this functionality but if you don't want the lightbox effect, you can change the following in the Two Column custom template for example (packages/theme_slate/blocks/page_list/templates/two_column/view.php):
Look for this line (#25):
<?php if ($cobj->getAttribute('thumbnail')) { ?><a href="<?php echo ($img->getVersion()->getRelativePath()); ?>" rel="fancybox<?php echo $bID?>" title="<?php echo $title?>"><img class="ccm-page-list-thumbnail" src="<?php echo $thumb->src; ?>" width="<?php echo $thumb->width; ?>" height="<?php echo $thumb->height; ?>" alt="<?php echo $title?>" /></a><?php  } ?>

And change it to this:
<?php if ($cobj->getAttribute('thumbnail')) { ?><a href="<?php echo ($img->getVersion()->getRelativePath()); ?>" title="<?php echo $title?>"><img class="ccm-page-list-thumbnail" src="<?php echo $thumb->src; ?>" width="<?php echo $thumb->width; ?>" height="<?php echo $thumb->height; ?>" alt="<?php echo $title?>" /></a><?php  } ?>

Basically, you just want to remove the
rel="fancybox<?php echo $bID?>"
RyujiS replied on at Permalink Reply
RyujiS
Thanks!

Actually, in order to do what I wanted to do, I had to change it to
<?php  if ($cobj->getAttribute('thumbnail')) { ?><a href="<?php  echo ($nh->getLinkToCollection($cobj)); ?>"  title="<?php  echo $title?>"><img class="ccm-page-list-thumbnail" src="<?php  echo $thumb->src; ?>" width="<?php  echo $thumb->width; ?>" height="<?php  echo $thumb->height; ?>" alt="<?php  echo $title?>" /></a><?php   } ?>

because I wanted the link to go to the referenced page not to the raw URL of the image. But thanks to your pointer it wasn't difficult. Please let me know if there's a better way to do this, but otherwise thank you for your quick response as always.
c5mix replied on at Permalink Reply
c5mix
Oh, yep. Forgot to change the href in that second line of code I posted :)

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.