add fields

Phoca Gallery - image gallery extension
olivier1378
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Aug 2017, 13:00

add fields

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: add fields

Post 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
If you find Phoca extensions useful, please support the project
olivier1378
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Aug 2017, 13:00

Re: add fields

Post 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 ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: add fields

Post 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
If you find Phoca extensions useful, please support the project
olivier1378
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Aug 2017, 13:00

Re: add fields

Post by olivier1378 »

Many thanks.
is possible to import xmp datas ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: add fields

Post by Jan »

Hi, for now, I don't know any extension for importing Xmp data into Phoca Gallery :idea:

Jan
If you find Phoca extensions useful, please support the project
olivier1378
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Aug 2017, 13:00

Re: add fields

Post 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 !
olivier1378
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 01 Aug 2017, 13:00

Re: add fields

Post by olivier1378 »

It's OK ! I have created several fields and I can display them in shadowbox
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: add fields

Post by Jan »

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