Page 1 of 1

description above images

Posted: 29 Apr 2010, 12:23
by wajri
Hi,
I have question how to change phoca gallery component that the reason will be like tihs:
Description
[Images]

Instead of default:
[Images]
Description

Do I have to change source code?

Regards,
Damian Mamys

Re: description above images

Posted: 29 Apr 2010, 14:15
by dwainm
Hi Damian Mamys

You will have to change the source code.

I can point you in the right direction, you will have to make structural changes to the following files:

/components/com_phocagallery/views/category/view.html.php
/components/com_phocagallery/views/category/tmpl/default.php

Dwain

Re: description above images

Posted: 01 Jul 2010, 17:58
by wajri
Hi Damian Mamys

You will have to change the source code.

I can point you in the right direction, you will have to make structural changes to the following files:

/components/com_phocagallery/views/category/view.html.php
/components/com_phocagallery/views/category/tmpl/default.php
Thanks Dwain

Unfortunately, I couldn't find the piece of source code that is responsible for this.
Where exactly do I have to make changes in this files - please help me if anyone knows.
Maybe someone has adapted source code ?

Best Regards,
Damian Mamys

Re: description above images

Posted: 01 Jul 2010, 19:15
by imperialWicket
As dwainm detailed, change /components/com_phocagallery/views/category/tmpl/default.php.

Around line 214 (I'm using the 2.7.3 Phoca Gallery) this code displays the title/description:

Code: Select all

if ( $this->tmpl['detailwindow'] == 5) {
        if ($this->tmpl['displaytitleindescription'] == 1) {
		echo '<div class="highslide-heading">';
		echo $value->title;
		echo '</div>';
	}
	if ($this->tmpl['displaydescriptiondetail'] == 1) {
		echo '<div class="highslide-caption">';
		echo $value->description;
		echo '</div>';
	}
}
Move that code block above the image output (somewhere around line 119 or so), and you should be in business.

Re: description above images

Posted: 02 Jul 2010, 20:25
by wajri
OK, Thank you very much I've done it! :)