Close window problem..

General Forum
sbellone
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 30 Apr 2011, 18:29

Close window problem..

Post 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
sbellone
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 30 Apr 2011, 18:29

Re: Close window problem..

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Close window problem..

Post by Jan »

Hi, thank you for the guide.
Jan
If you find Phoca extensions useful, please support the project
Post Reply