change storage directory

Phoca Gallery - image gallery extension
gikass
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Dec 2023, 17:06

change storage directory

Post by gikass »

Hello, I have been using this component since Joomla 1.5, I love it, when you upload images to Joomla they go to image/phocagallery/, I want to change the root directory, do you know how to do it, or what file does this work, thank you.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: change storage directory

Post by Jan »

Hi, to change the paths, you should customize this file:

administrator/components/com_phocagallery/libraries/phocagallery/path/path.php

Jan
If you find Phoca extensions useful, please support the project
gikass
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Dec 2023, 17:06

Re: change storage directory

Post by gikass »

Thank you Jan for your time, I modify lines 26 and 27

$instance->image_abs = JPATH_ROOT . '/fotos/phocagallery/';
$instance->image_rel = 'fotos/phocagallery/';

and it does not generate the images in the front and bankend of Joomla, I will have to modify something else
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: change storage directory

Post by Jan »

Hi, I din't do such customization yet, so hard to say, but I think, you both variables should do the trick. Did you newly add the images to system?

Jan
If you find Phoca extensions useful, please support the project
Opendreas
Phoca Member
Phoca Member
Posts: 18
Joined: 29 May 2024, 03:02

Re: change storage directory

Post by Opendreas »

Jan wrote: 29 Dec 2023, 16:09 Hi, to change the paths, you should customize this file:

administrator/components/com_phocagallery/libraries/phocagallery/path/path.php

Jan
It works, but most likely it will be overwritten with some update.
If possible, please add this option to Phoca Gallery settings.
Post Reply