13 Sep 2010
16 Feb 2011
Link to this post
I am trying to use the existing Documents and Images upload dialogs, in conjunction with a RadEditor to allow authenticated users to upload Images to their own library. For example, I have a series of users that will have their own content areas (sort of like a blog, but not really) on the site, where they will want to upload images to then be used in the content they post using a RadEditor. These users do not have access the the Sitefinity admin area so all of
their tools would be public-facing, assuming they've logged in.
I've created a separate version of the EditorToolsFile.xml to include the appropriate controls, and created a copy of the ~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx file and have them all connected and working. I've made a separate version of the ~/Sitefinity/Admin/ControlTemplates/Libraries/Dialogs/ImageEditorDialog.ascx file so I can make some small changes to the interface as well as removing the ability to select a different library (I just hid those controls).
However, I'm stuck now. I need to be able to tell the Upload dialog to always use a particular Library (based on the authenticated user), and always use that library when selecting images to display. I tried looking at the LibrarySelector control, and the RadUpload controls, but I can't seem to find a way to tell either of these things to use a particular library.
Can someone point me in the right direction as to how I might do this?