Announcement

  •  » Extensions
  •  » Customize the Export Data Plugin

#1 2015-05-16 19:13:37

alessandro
Member
2015-02-25
5

Customize the Export Data Plugin

Hello

is there a way to customize the Export Data Plugin and add the photo rating metadata value to CSV export file?

Thanks.
Alessandro

Piwigo version: Piwigo 2.7.4

Offline

 

#2 2015-05-17 11:21:05

alessandro
Member
2015-02-25
5

Re: Customize the Export Data Plugin

Solved:

-Open file plugins/export_data/admin.php
-Go to line 65 at the start of export variables (from 'SELECT')
-Add the needed variable (i.e. 'rating_score' after )one of the other variables
-Save the file

SELECT
    i.id,
    file,
    date_available,
    date_creation,
    rating_score,
    ...

To find the name of available variable (if you can't access to database) open the installation file "piwigo_structure-mysql.sql" and look into the piwigo_images table definition starting at line 181.

Offline

 
  •  » Extensions
  •  » Customize the Export Data Plugin

Board footer

Powered by FluxBB

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