Page 1 of 1

[SOLVED] Customize Slimbox Detail View Text

Posted: 10 Jul 2011, 02:46
by sjnims
I've looked all over the parameters and even on the back-end in the component views and can't find where I can change the text displayed when in the detail view using the slimbox effect.

e.g.

Image

Because the file names are all random like shown above, I'd rather just display the name of the category then something like "photo x of z".

Obviously the easy way is to name my photos better, but who wants to do that?

Re: Customize Slimbox Detail View Text

Posted: 12 Jul 2011, 12:14
by dethisandthat
version: 2.7.4
file: \Joomla\components\com_phocagallery\views\category\tmpl\default.php
line: 121

Code: Select all

              if ($value->type == 2) {
			if ($value->overlib == 0) {
                                //this is where the filename is displayed in slimbox and as thumbnail tooltips.
                                //change it to display something else.
				echo ' title="'. $value->title.'"';  
			}
		}

Re: Customize Slimbox Detail View Text

Posted: 12 Jul 2011, 14:02
by sjnims
Sweet! Thanks for pointing that out.

For reference I changed the text displayed to the category name:

Code: Select all

echo '<a class="'.$value->button->methodname.'"';
if ($value->type == 2) {
     if ($value->overlib == 0) {
          echo ' title="'. $this->category->title.'"';
     }
}
echo ' href="'. $value->link.'"';