Announcement

  •  » Extensions
  •  » Extend Piwigo Import Tree to also handle sort order

#1 2015-10-19 19:15:35

TheDoc
Member
Munich / Germany
2015-10-18
173

Extend Piwigo Import Tree to also handle sort order

Hi all,

once the issues with GPS coordinates are resolved I'm ready to migrate to PiWiGo :-)

I would like to use the Piwigo Import Tree script since it can also handle descriptions. In addition, I would also need to migrate the image sort order as well. So I'm thinking about extending the script by adding another file that can be parsed for the sort order.

Three question before I start:

- Any better alternative to migrate than with the script (no, I'm not using any other photo gallery app so far)?

- Has something similar maybe already been done somewhere?

- Could someone please post an example of a description file so that I could model a sort order file similarly?

Thanks and regards,
Thomas


Piwigo version:
PHP version: 2.74
MySQL version: 5.5.30
Piwigo URL: http://www.feuster.com/piwigo

Offline

 

#2 2015-10-21 14:08:43

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: Extend Piwigo Import Tree to also handle sort order

Hi TheDoc,

Here is an example of file descript.ion you can have in a directory:

Code:

IMG_0868_1.jpg  18th century style bridge
IMG_0914_1.jpg  The Druid

tab separator between the file name and the description.

You can also use [extension by plg] Properties Mass Update to update photo description/title/tags

In order to manage the sort order, do you plan to have a text file with the list of sorted file names?

Offline

 

#3 2015-10-21 19:14:50

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Extend Piwigo Import Tree to also handle sort order

Hi plg,

thanks for the quick answer. Indeed  Properties Mass Update looks very promising, will give that a try...

As for sort order: Would have thought to use the same approach - a file with

filename TAB sort order

I don't see any real difference between the description and sort order. But things might look different behind the scenes?

Thanks,
Thomas

Offline

 

#4 2015-10-22 20:59:28

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: Extend Piwigo Import Tree to also handle sort order

Hi,

had a look behind the scenes in order to update the descriptions... So sort order isn't as straight forward as description since you need the info

image + gallery + sort order

and join tables accordingly...

I could also create a text files with the file names sorted in correct order in my exporting step from the previous gallery. Anything that makes importing the sort order easier in PiWiGo is possible!

Offline

 
  •  » Extensions
  •  » Extend Piwigo Import Tree to also handle sort order

Board footer

Powered by FluxBB

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