Page 1 of 1

Close window problem..

Posted: 30 Apr 2011, 18:41
by sbellone
Hi all!
First of all i want to congratulate phoca's creators because it's simply wonderful!
I want just to ask for a problem:

I'm using Joomla 1.5.2.2 and Phoca 2.7.5 to build my pics gallery.
Everything works fine but if i click on the "close window" button while i'm sliding the pics, nothing happens.
I've to re-digit the website URL in order to return on the home page.
I have this problem with every browser: IE, chrome, firefox.

Any idea about a possible solution? Or alternatively...how can i make a static pointer to the home page mapped to "close window" click event?

Thx in advance!
Sergio

Re: Close window problem..

Posted: 02 May 2011, 16:39
by sbellone
Hi all!
I respond myself...

The problem is between "close window" button and the particular joomla template you're using.
I have solved this issue modifying directly the file renderdetailbutton.php at this line:


$close = '<a href="'.JRoute::_('mytest').'" onclick="%onclickclose%" title="'.JText::_( 'Close window').'" >'. JHTML::_('image', 'components/com_phocagallery/assets/images/icon-exit.' . $this->_formaticon, JText::_( 'Close window' )).'</a>';

return $close;
}

Now, clicking on close window you'll be redirect on \root\mytest page

I think that's the unique solution!

Sergio

Re: Close window problem..

Posted: 02 May 2011, 22:11
by Jan
Hi, thank you for the guide.
Jan