change storage directory
-
- Phoca Newbie
- Posts: 2
- Joined: 28 Dec 2023, 17:06
change storage directory
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.
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: change storage directory
Hi, to change the paths, you should customize this file:
administrator/components/com_phocagallery/libraries/phocagallery/path/path.php
Jan
administrator/components/com_phocagallery/libraries/phocagallery/path/path.php
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 28 Dec 2023, 17:06
Re: change storage directory
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
$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
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: change storage directory
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 18
- Joined: 29 May 2024, 03:02
Re: change storage directory
It works, but most likely it will be overwritten with some update.
If possible, please add this option to Phoca Gallery settings.