[SOLVED] Customize Slimbox Detail View Text

Phoca Gallery - image gallery extension
sjnims
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2008, 12:54

[SOLVED] Customize Slimbox Detail View Text

Post 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?
Last edited by sjnims on 12 Jul 2011, 14:03, edited 1 time in total.
dethisandthat
Phoca Member
Phoca Member
Posts: 13
Joined: 17 Sep 2010, 11:09

Re: Customize Slimbox Detail View Text

Post 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.'"';  
			}
		}
sjnims
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2008, 12:54

Re: Customize Slimbox Detail View Text

Post 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.'"';
Post Reply