Joomla JoomGallery - add link in SlimBox to Detail View (for comments and ratings)

JoomGallery in one of the most powerful Joomla gallery extensions with countless number of options and settings. I won't go into details on how JoomGallery works, If you are reading this you probably already familiar with this component.

My aim was to give people an easy and quick way to browser images in Category View and SlimBox without going through Detail View.  You can achieve this by enabling following option:
Configuration Manager > Category View > General Settings > Entering Detail View > SlimBox

Configuration Manager > Category View > General Settings > Entering Detail View > SlimBox

This way people can browse pictures in Category View and clicking on any picture opens a large version in a SlimBox. Unfortunately this removes ability to comment and rate pictures because the only way to do this is open image in the Detail View. So, what we need is ability open Detail View from SlimBox.
To achieve this all you need is a single line of code in a right place:

  • Open file: components/com_joomgallery/helpers/html/joomgallery.php
  • Scroll down to line 943, where you will find following code:
 $atagtitle = 'title="'.$tagtitle;
  • Add following code to line 944 after {
$tagtitle .= "<br/><a href='index.php?option=com_joomgallery&amp;view=detail&amp;id=".$image->id."'>Comment or Rate</a>";
  • The whole segment now should look like this:
{  $tagtitle .= "<br/><a href='index.php?option=com_joomgallery&amp;view=detail&amp;id=".$image->id."'>Comment or Rate</a>";
   $atagtitle = 'title="'.$tagtitle;
  • Save changes and you are done.

If after clicking on a link you are seeing an error "You are not allowed to view the detail page of the images", make sure the following option is set to No:
Configuration Manager > Detail View > General Settings >
Disable default detail view

Configuration Manager > Detail View > General Settings > Disable default detail view

This was tested on JoomGallery Version 2.0.0 BETA5.
If you have more up to date version line numbers may be different. And obviously there is no guarantee that this particular change will work in future versions at all… Hopefully JoomGallery will implement something similar in future versions. You can actually vote for implementing very similar feature here.


# Felipe 2015-01-08 20:50

There is possible to include directly the comment box inside Slimbox View?, I mean, instead of the link.

Pleaseeee helpppp meeee. Thank you very much
# Frank 2014-10-19 11:19
This sounds like a really great solution, but seems to be out of date for the current version of Joomgallery. Any chance of an update?
# andrew 2014-09-07 23:20
you can put the download button in a slimbox?

thanks a lot
+1 # AlbertoPoljak 2014-08-06 15:02
Hmm for new versions the file is in:
# Alberto 2014-08-06 01:35
# Lionel 2013-04-11 10:04

Thanks, your tip is exacly what I want to do!
But unfortunately I am using JoomGallery 2.1.3 and it seems to be different.
The file " p" is having only 563 lines, so imossible to find that text to replace... :sigh:

Do you know where this change should be done in the latest version of JoomGallery?

Thanks for your feed back!
# Claude 2013-04-04 12:11

Do you know by chance if this can be used to attach a "facebook-Like" Button to the slimbox and how to do it? (With FB-ID and counter)
Best regards,
+1 # Zafi 2012-06-12 08:59
You are star, I was trying to this for the latest joomgallery versoin :-)


Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait