I'm creating this custom upload control which I will be using on a custom image gallery/albums. Handle the file system (create folder, thumbnail, upload...) is not a problem.
To better explain what I'm trying to achive here is a brief explanation of how it's going to work:
A) Each gallery is a sub-node under the "Galleries" node. B) A gallery node contains Name, Description and an upload control to allow the user to upload images. C) Each gallery has sub-nodes which are images. Images must have names and description.
What I need to know is how to programatically achieve this:
1) Since the upload control is being fired on a gallery node, I need to retrieve this node information so I can associate the uploaded images with this gallery. 2) I also need to create the media(images) programatically.
Hoe to create media from a custom upload control
Hi;
I'm creating this custom upload control which I will be using on a custom image gallery/albums.
Handle the file system (create folder, thumbnail, upload...) is not a problem.
To better explain what I'm trying to achive here is a brief explanation of how it's going to work:
A) Each gallery is a sub-node under the "Galleries" node.
B) A gallery node contains Name, Description and an upload control to allow the user to upload images.
C) Each gallery has sub-nodes which are images. Images must have names and description.
What I need to know is how to programatically achieve this:
1) Since the upload control is being fired on a gallery node, I need to retrieve this node information so I can associate the uploaded images with this gallery.
2) I also need to create the media(images) programatically.
I appreciate any help on this.
Thanks in advance;
Hi everyone,
We need exactly control ))
Custom gallery, maybe you could help ?
Thanks,
Alex
With DAMP you can use custom media types. Which will give you full control over what fields a media item has. Watch this video for a demo: http://www.youtube.com/watch?v=LkcObL7CMvQ
Jeroen
Try this to upload images.
More examples how it's done in DAMP :p.
In this example you see how the upload datatype is used on a custom page. That way everything will work the same as with the normal uploader.
BtnCreate_Click method in here: http://damp.codeplex.com/SourceControl/changeset/view/81602#1765786
In this example you see how I create media if no upload datatype/control is available.
CreateMedia method in here: http://damp.codeplex.com/SourceControl/changeset/view/81602#1967018
Jeroen
We create big site, with thousands of nodes and galleries, and I think don't use media, for reducing loading of umbraco.
Maybe mannually create some file structure of images, and cotrol for umbraco admin part for managing images.
Hmm maybe Umedial is something for you. Most info is dutch but this might help: http://www.slideshare.net/axendo/umedial-umbraco-media-library
http://www.axendo.nl/nieuws/axendo-presenteert-nieuw-product-umedial
Jeroen
is working on a reply...