Difference between revisions of "Photo Gallery Export"
Line 1: | Line 1: | ||
+ | === New method using ultimate csv importer pro === | ||
+ | 1. Find a file for a gallery not yet imported. | ||
+ | 2. In the file there's a column called nextgen-gallery copy that name from one of the records. | ||
+ | 3. Create a new nextgen gallery with that name (if one doesn't exists for it already) | ||
+ | 4. Goto the Ultimate CSV Importer Pro plugin | ||
+ | |||
+ | Importer steps: | ||
+ | 1. Goto Import/Update | ||
+ | 2. Upload file (wait for progress bar to finish) | ||
+ | 3. leave it new and posts then click CONTINUE | ||
+ | 4. leave the field mapping as they are (auto) Then click CONTINUE | ||
+ | 5. Click the NextGEN Gallery support on featured image (on) | ||
+ | 6. setup Media SEO & Advanced Options | ||
+ | - set title = post_title | ||
+ | - set alt text = post_title | ||
+ | - set description = post_content | ||
+ | 7. click CONTINUE | ||
+ | 8. click IMPORT | ||
+ | |||
+ | |||
+ | === Old way === | ||
checkout the old site in vagrant sites folder | checkout the old site in vagrant sites folder | ||
Revision as of 17:29, 5 March 2019
New method using ultimate csv importer pro
1. Find a file for a gallery not yet imported. 2. In the file there's a column called nextgen-gallery copy that name from one of the records. 3. Create a new nextgen gallery with that name (if one doesn't exists for it already) 4. Goto the Ultimate CSV Importer Pro plugin
Importer steps: 1. Goto Import/Update 2. Upload file (wait for progress bar to finish) 3. leave it new and posts then click CONTINUE 4. leave the field mapping as they are (auto) Then click CONTINUE 5. Click the NextGEN Gallery support on featured image (on) 6. setup Media SEO & Advanced Options - set title = post_title - set alt text = post_title - set description = post_content 7. click CONTINUE 8. click IMPORT
Old way
checkout the old site in vagrant sites folder
clone the Photo Exporter
git clone git@cvs2:prog/PhotoExporter.git
There are two main files for the import process. One will work with the Media Library and the other will work with the Photo Gallery. Media Gallery was the newer of these two applications.
Edit the file for photoGallery.php
define('IMG_BASE_URL', 'http://is0.gaslightmedia.com/harborpointgolfclub/pgs1/'); define('PG_DSN', 'pgsql: host=ds4 dbname=harborpointgolfclub user=postgres'); define('PHOTO_SCHEMA', 'public'); define('PHOTO_CATEGORY', false); IMG_BASE_URL = the large photo url (usually is0) PG_DSN = database connection string PHOTO_SCHEMA = this will be either public or photos PHOTO_CATEGORY = leave false unless you have only one photo category to export then set this to the category id
Go to your vagrant site with PhotoExporter at the end
http://localhost:8080/PhotoExporter/index.php
There's two links click the photoGallery one. It will take a while, but it'll download all of the photos and sort them into directory names based on the category.
rsync these folders to somewhere in the uploads directory of the wordpress site. You'll have to fix the permissions on the files when you get them up there. You can then import the folders as galleries in nextgen.