Page 1 of 1
change storage directory
Posted: 28 Dec 2023, 17:15
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.
Re: change storage directory
Posted: 29 Dec 2023, 16:09
by Jan
Hi, to change the paths, you should customize this file:
administrator/components/com_phocagallery/libraries/phocagallery/path/path.php
Jan
Re: change storage directory
Posted: 30 Dec 2023, 13:22
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
Re: change storage directory
Posted: 03 Jan 2024, 00:42
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
Re: change storage directory
Posted: 04 Jun 2024, 14:35
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.