Change default path/folder for gallery

Phoca Gallery - image gallery extension
maxer7
Phoca Member
Phoca Member
Posts: 11
Joined: 22 May 2021, 12:25

Change default path/folder for gallery

Post by maxer7 »

I'm planning create gallery from images exists on server ex. ROOT/images/landscapes
These pictures are included in articles and I cant change location of images.
In phoca gallery I can set images only from ROOT/images/phocagallery,but not ROOT/images/landscapes
How solve it?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change default path/folder for gallery

Post by Jan »

Hi, the only one solution for this is to customize the code and change the path there. Try to see similar posts in this forum as there are some information regarding changing the paths.

Jan
If you find Phoca extensions useful, please support the project
maxer7
Phoca Member
Phoca Member
Posts: 11
Joined: 22 May 2021, 12:25

Re: Change default path/folder for gallery

Post by maxer7 »

Thanks,but I cant find it.
I found images/phocagallery in files on server
I tried edit in files
default_images.php
default_download.php
to my choice,but without changes
maxer7
Phoca Member
Phoca Member
Posts: 11
Joined: 22 May 2021, 12:25

Re: Change default path/folder for gallery

Post by maxer7 »

{solved]
I cant edit previous post
I changed path:
images/phocagallery
in files:
renderfront.php
path.php
default_download.php
default_images.php
script.php
Thanks
Harley
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 May 2021, 09:03

Re: Change default path/folder for gallery

Post by Harley »

Hi, can you tell me where i find the files?
maxer7
Phoca Member
Phoca Member
Posts: 11
Joined: 22 May 2021, 12:25

Re: Change default path/folder for gallery

Post by maxer7 »

I cant use img function
I found files with string "images/phocagallery" copied to disk, edited with notepad++ (without BOM-important) and replace.
https://imgur.com/xQuaq3J
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Change default path/folder for gallery

Post by Jan »

Hi, see:

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

where teh paths are defined and see similar posts in this forum, where users explained all the details.

Jan
If you find Phoca extensions useful, please support the project
Post Reply