Register   Login
     
  Latest Posts  
RE: Introducing the most powerful News Slider for Ventrian News Articles
by jhoelz on 3/19/2010 9:29 PM
Rich Snippets for Review, Ratings etc!
by georgelew on 3/19/2010 7:49 PM
Recently created articles are not shown in list
by atriage on 3/19/2010 11:18 AM
RE: News Articles Tokens
by spirit on 3/19/2010 10:43 AM
Author post count and link in listing.item.html
by mattbunce on 3/19/2010 10:18 AM
RE: News Article Detail and Lightbox
by spirit on 3/19/2010 10:12 AM
RE: News Article Detail and Lightbox
by ray-isc on 3/19/2010 9:49 AM
Using custom profile properties with [AUTHOR:XXX]
by mattbunce on 3/19/2010 9:34 AM
RE: NA Latest - Template question
by Blondie on 3/19/2010 9:23 AM
skin disfigured after click on article link
by jsw on 3/19/2010 9:11 AM
  Forums  
Subject: Import Tool for Simple Gallery
Prev Next
You are not authorized to post a reply.

Author Messages
Philipp BeckerUser is Offline
Non-Profit Membership
Ventrian Wiz
Ventrian Wiz
Posts:146


11/15/2006 1:31 AM  

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.

  1. Install as a module
  2. Drop the module on any page, you need it only once per portal, I'd suggest to drop it on a hidden page
  3. upload a directory structure into your portal home directory
  4. in the module select the gallery module that you would like to import into
  5. select a parent album to import folders as subalbums or leave it as is to import root albums
  6. select the root folder, where you would like to start importing from
  7. 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.
  8. 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.


Attachment: pnc.Publisher.SimpleGalleryImport.01.00.00.PA.zip


Cheers, Philipp

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


11/15/2006 1:53 AM  
I've changed the post to include the attachment, you should be able to attach to this forum now.

Scott McCulloch
Site Administrator
Rob PorettiUser is Offline
Registered Users
Ventrian Wiz
Ventrian Wiz
Posts:160


2/12/2007 11:04 AM  
What version of DNN does this utility work on?

Rob Poretti -
Poretti Productions -
skin3 Team ● X:Skins ● Cubist ● KrystalWare ● Gamer ● iKon
Tom MortensenUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:16

2/17/2007 7:41 AM  
Phillip, you're the man!

It works perfectly with DNN 4.4.1 and SimpleGallery 02.01.03.

I had a main folder with 42 folders/subfolders and 1415 files. I zipped the whole thing, uploaded it to, in my case, /Portals/0 via FTP, unzipped it via my host's file manager, went to your module, click click and voila... My SimpleGallery was populated.

Thank you so, so much.

\tom
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


2/18/2007 3:13 AM  
I've added this into my pipeline to re-look at how to incorporate this into the main module.

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > Modules > Simple Gallery > Import Tool for Simple Gallery



ActiveForums 3.7