Page 1 of 1

Custom field for images

Posted: 14 Nov 2022, 12:12
by keep2000
Is it possible to add new custom fields to the images in Phoca Gallery? If I add a new field to the database manually, does PG keep it when i update the extension?
We build a photo archive database and need some more fields for that, like creator of the photo, who donated to the database, when it was taken etc.

We use Joomla 3 + PG 4.4.3

Re: Custom field for images

Posted: 14 Nov 2022, 15:06
by Jan
Hi, for now, there is no such option, so this needs to be customized directly in code. If you will do some changes to core code, of corse for such change a backup needs to be done because new version overrides code.

Jan

Re: Custom field for images

Posted: 14 Nov 2022, 16:03
by keep2000
Jan wrote: 14 Nov 2022, 15:06 Hi, for now, there is no such option, so this needs to be customized directly in code. If you will do some changes to core code, of corse for such change a backup needs to be done because new version overrides code.

Jan
Hi Jan. Thanks. Sure, the php is affected but what about the db fields? When I add some new fields to the database fields won't be removed on an update?

Re: Custom field for images

Posted: 15 Nov 2022, 00:13
by Jan
Hi, they should not be removed. When updating, only new columns are added, but there is no other manipulation with database. So this should stay OK in database.

Jan

Re: Custom field for images

Posted: 15 Nov 2022, 09:43
by keep2000
Great news Jan, thanks a lot

Re: Custom field for images

Posted: 19 Nov 2022, 00:31
by Jan
Ok