Download & Extend

Create node through script or import data into content somehow

Project:Node Gallery
Version:6.x-3.0
Component:Code
Category:task
Priority:major
Assigned:Unassigned
Status:active

Issue Summary

I want to be able to allow the user to upload a .zip file through some other module maybe (?) and then I want to run a script straight away (is this done through triggers?) which will add the corresponding entries into the DB which would create a gallery and add the appropriate pictures, i.e. create a new node of type node gallery.

The user will upload this .zip file which will have pictures with some extra information.

Anyone know how to do this? I just want to automate the creation of the node with all the pictures.

I'm using Drupal 6.

Thanks.

Comments

#1

Hey DanishK,

I used the Migrate module to import content to be gallery nodes.

I then used the migrate module to import actual photos to be gallery_image nodes.

When this was complete, I wrote a small php script that updates the node_gallery_images table and gives entries for the nid and gid(gallery id).