I had a need to import 200+ files across a few albums. Being to many clicks to perform, I built a small utility to do the job. I'd like to share, here you go...
The utility browses a given directory structure and adds each directory found as an album to Simple Gallery where the album structure corresponds to the directory structure. Each supported image file in the directories is being added as a photo to its album, the filename (stripped off the extension) becomes the photoname.
So if you have complex directory structure that you would like to become an album structure, simply zip the whole directory tree, upload it through the dnn filemanager and import it into a gallery module by using the utility provided.
- Install as a module
- Drop the module on any page, you need it only once per portal, I'd suggest to drop it on a hidden page
- upload a directory structure into your portal home directory
- in the module select the gallery module that you would like to import into
- select a parent album to import folders as subalbums or leave it as is to import root albums
- select the root folder, where you would like to start importing from
- check "Include selected folder as Parent Album" if you want the root directory of your directory tree to become a parent album. If unchecked, it will add each subfolder below the root folder as an album below the selected parent album.
- Click "Import"
It hasn't been tested extensively, but it did the job for that I created it like a charm. It checks for the module settings of the target module by the way, so it will resize and consider quality settings and so (the photo import method is taken directly from SimpleGallery)
Hm. I cannot attach here? I'll send it to Scott. |