Announcement

  •  » Extensions
  •  » Smart albums based on locations

#1 2015-05-03 12:57:14

Naunet
Member
2014-12-17
8

Smart albums based on locations

Hello/Hi/Greetings,

Many of my uploaded photos have a location names in the meta data:

exiftool myphoto.jpg -xmp:location -g1
---- XMP-iptcCore ----
Location                        : my location

I've already added the field 'location 'to config.inc.php:

$conf['use_iptc_mapping'] = array(
  'keywords'        => '2#025',
  'date_creation'   => '2#055',
  'author'          => '2#122',
  'name'            => '2#005',
  'location'     => '2#092',
);

I also find the location names in the images table of the SQL-files. 

However the list of filters in the smart albums extension seems to be hard coded. So, any ideas how to improve the smart albums extension to fill an album automatically on this meta data?

I don't like the idea to copy the location into the keywords.


Thanks for reading, naunet



Piwigo version: 2.7.4
PHP version: 5.3.29
MySQL version: 5.5.40-MariaDB
Piwigo URL: none public jet

Offline

 

#2 2015-05-03 13:03:44

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Smart albums based on locations

Hi

of course it's hard-coded, there is no way the plugin can by itself decide which fields are suitable for filter and provide a useable GUI

I don't have any solution for you if you want to use your custom field

Offline

 

#3 2015-05-03 13:15:17

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Smart albums based on locations

yet in the next version I will make it possible for other plugins to add filters, like it's possible in the core batch manager

Offline

 
  •  » Extensions
  •  » Smart albums based on locations

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact