Does anyone know of method or module that will allow document upload and/or content editing in place without the user having to go into the backend?
i.e. I have an intranet and would like to allow pages in the HR section to be edited and maintained by HR personnel without having to let them into the back end. Does anyone know of a method or module that will allow this?
sender, EventArgs e)
LibrariesManager librariesManager = LibrariesManager.GetManager();
Document document = librariesManager.CreateDocument(Guid.NewGuid());
DocumentLibrary documentLibrary = librariesManager.GetDocumentLibraries().Where(d => d.Title ==
document.Parent = documentLibrary;
document.DateCreated = DateTime.UtcNow;
document.PublicationDate = DateTime.UtcNow;
document.LastModified = DateTime.UtcNow;
document.UrlName = Regex.Replace(document.Title.ToLower(), @
//Recompiles and validates the url of the document.
path = Server.MapPath(
//saves the file in your project folder
.FileUpload1.SaveAs(path + FileUpload1.FileName);
documentPath = Server.MapPath(
FileStream fileStream =
extension = Path.GetExtension(documentPath);
//Upload the document file.
librariesManager.Upload(document, fileStream, extension);
//Save the changes.
//Publish the DocumentLibraries item. The live version acquires new ID.
var bag =
You should create a new assembly project, add your widget(s) into that. Then you can just hand it off to your admins to plop in the "bin" folder, which will recycle the site.
You can follow this code sample to auto-add the widget(s) to your toolbox
...or just do it manually when they tell you it's been added.
When you say a new assembly project are you talking just a plain old VS assembly project or some sort of special assembly project thru thunder or with Sitefinity templates?
Plain, Add->New Project->Class Library
Then in your SF project, reference that project, and in that project add references back to like Telerik.Sitefinity, Telerik.Sitefinity.Model, Telerik.Sitefinity.Utilities or whatever you might need.
If you have Sitefinity Thunder installed you can jsut right-click the Class Library (or a folder in it) and
Add->New Item->Sitefinity->Sitefinity Widget with Designer
build...new widget created...available to add to your toolbox and use right away!