Page 1 of 1

Alignment of description not logically

Posted: 21 Dec 2013, 16:09
by rob-van-baal
Hello Phoca team,

(using Joomla 3.2.0 with Galery 4.0.4)

For the detail window I'm using the no-popup setting (COM_PHOCAGALLERY_NO_POPUP). This shows the pictures as normal html pages. When activating the description on the detail screen I choose the standard setting (COM_PHOCAGALLERY_SHOW_STANDARD).

On the screen, the picture and navigation controls are shown at a centered way, which is ok; but the description is left aligned! Very strange.

In order to solve this, I have edited the defaults.php (components/com_phocagallery/views/detail/tmpl/default.php) and changed:

Code: Select all

// Standard Description
if ($this->tmpl['displaydescriptiondetail'] == 1) {
	echo '<tr>'
	.'<td colspan="6" align="left" valign="top" class="pg-dv-desc">'
into

Code: Select all

// Standard Description
if ($this->tmpl['displaydescriptiondetail'] == 1) {
	echo '<tr>'
	.'<td colspan="6" align="center" valign="top" class="pg-dv-desc">'
And now the description oulines nicely in the center together with the picture and navigation!

Please check this out yourselve and considor taking over this minor change in code...

Regards,

Rob.

Re: Alignment of description not logically

Posted: 25 Dec 2013, 03:00
by Jan
Hi, thank you for the info, mostly this should be set by every user for his/her server like you have done. Many users do not like centered alignment, so the standard one (left) is used. I by myself cannot say which one is the right one, if centered like the image or left with centered image, so this mostly needs to be set for the current template.

Anyway thank you for the info and for the guide. I will take a look at it.

Jan