Title under image

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Title under image

Post by Jan »

Hi, there is no such feature but this can be customized in the code (in template of categories view). Try to search this forum, there should be some guides.

Jan
If you find Phoca extensions useful, please support the project
jakobe75
Phoca Member
Phoca Member
Posts: 40
Joined: 25 Mar 2008, 00:50

Re: Title under image

Post by jakobe75 »

I am wondering this too, and confused by the answer from the Developer, as this was a heated disscusion some years ago and finally solved.


I have been using phoca on one of my older sites...and I know for a fact I display the images and categories in a grid

with the names UNDER the category and the images.

I made no changes to the script and I installed it by default this way.


however when I upgraded..this feature was lost.
but the older version around 2.5.7

has this built in by default.
no mods
no crazy code changes.

so how can this be done in newer verisons
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Title under image

Post by Jan »

Hi, sorry I don't understand. This is a default feature of Phoca Gallery - to display titles below thumbnails. Check your parameters and parameters component if this is not disabled there.

Jan
If you find Phoca extensions useful, please support the project
Nabucco
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 03 Apr 2010, 14:39

Re: Title under image

Post by Nabucco »

Ciao ballacoilupi,
I had your same problem and i solved it thanks to Jan's post from this thread: viewtopic.php?f=1&t=793&hilit=name+belo ... l&start=10
File:
components\com_phocagallery\views\categories\tmpl\default.php

row:
67 + -

FROM:
echo '<td align="center" valign="middle" style="'.$this->imagebackground.'"><a h
ref="'.$this->categories[$i]->link.'">'.JHTML::_( 'image.site', $this->categories[$i]
->linkthumbnailpath, '', '', '', $this->categories[$i]->title, 'style="border:0"' ).'
</a></td>'; echo '<td><a href="'.$this->categories[$i]->link.'" class="category'.$this->params
->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title.'</a> ';


TO:
echo '<td align="center" valign="middle" style="'.$this->imagebackground.'"><a h
ref="'.$this->categories[$i]->link.'">'.JHTML::_( 'image.site', $this->categories[$i]
->linkthumbnailpath, '', '', '', $this->categories[$i]->title, 'style="border:0"' ).'
</a></td></tr>'; echo '<tr><td><a href="'.$this->categories[$i]->link.'" class="category'.$this->pa
rams->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title.'</a> ';
Now i have titles below thumbnails on categories view!
Thanks Jan!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Title under image

Post by Jan »

Hi, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
Post Reply