Page 1 of 1

add fields

Posted: 01 Aug 2017, 13:06
by olivier1378
Hi,
I'm french and sorry for my English !

I'd like to add fields into the description of every photo. For example date ou place (where the photo were taken), photographer... (i know you can place these informations into the description but in full text, i look after fields )
and I'd like to diplay this fields in the legend of every photo.

Somebody have an idea ?

Many thanks

Olivier

Re: add fields

Posted: 01 Aug 2017, 16:26
by Jan
Hi, for now, there is no such option, so this needs to be customized.

Such data can be taken from database or directly from exif. :idea:

Jan

Re: add fields

Posted: 01 Aug 2017, 18:14
by olivier1378
Hello,

Many thanks !

From database ? all my photos are in a database (phpmyadminfor example) . You can make a link between Phoca and a database ?

Re: add fields

Posted: 03 Aug 2017, 17:26
by Jan
Hi, I mean, it depends on which data you need, if they are in database, it is better to load them from database. If they are not stored there, and are a part of EXIF of the image, they need to be loaded from EXIF. But this needs to be customized directly in the code - in the model - to load the data and in view to display them on the place you need. :idea:

Jan

Re: add fields

Posted: 03 Aug 2017, 22:14
by olivier1378
Many thanks.
is possible to import xmp datas ?

Re: add fields

Posted: 04 Aug 2017, 12:41
by Jan
Hi, for now, I don't know any extension for importing Xmp data into Phoca Gallery :idea:

Jan

Re: add fields

Posted: 13 Aug 2017, 12:50
by olivier1378
many thanks

"But this needs to be customized directly in the code - in the model - to load the data and in view to display them on the place you need"

Can you help me : What files must be modified ?(add fields in the control panel then display them....°

Thanks !

Re: add fields

Posted: 15 Aug 2017, 11:11
by olivier1378
It's OK ! I have created several fields and I can display them in shadowbox

Re: add fields

Posted: 17 Aug 2017, 12:53
by Jan
Ok