sharepoint

Sharepoint RichImageField set default image

In my custom page layout I declare a RichImageField <PublishingWebControls:RichImageField id="InteriorHeaderImage" FieldName="InteriorHeaderImage" InputFieldLabel="Header Image" runat="server" DisplayWidth="960" DisplayHeight="242" /> I'm trying to figure out how to set the default image so the control always shows an image even the...

Order of SPDocumentLibrary menu items using Custom_AddDocLibMenuItems

I'm adding a custom context menu item to documents (and not folders) in a SPDocumentLibrary list in SharePoint. The following code works, but always adds my custom menu item at the top of the context menu, which I don't want. I was guessing that the final parameter in CAMOpt was a sequence number that would define the order, but it doesn...

Preparing a Windows XP development environment for SharePoint

I am trying to get started with MS Sharepoint. How can I prepare my Standalone PC (running Windows XP Professional) to have a development environment for MS Sharepoint ? ...

RenderingTemplates for EditProfile.aspx - Which RenderTemplate uses the MySite?

I am working on Replacing Default text editor in MOSS. So I found good blog for change in regular sites, but not in MySites collections. Looking for RenderingTemplate for Richtextbox(ProfileEditor) in EditProfile.aspx page. EditProfile.aspx has ProfileEditorXXXX. I know DefaultTemplates.ascx will render templates for regular sites colle...

Retrieve all items from a SharePoint Field Choice Column

Hello SO: I am playing around with a SharePoint server and I am trying to programmatically add a service request to microsoft's call center application template. So far, I have had pretty good success. I can add a call for a specified customer and assign a specific support tech: private enum FieldNames { [EnumExtension.Value("Servi...

Is the OnAdded field event fired when a content type is added to a list

Say I have a custom field type called MyCoolField that I have deployed in a solution. This solution also contains a an SPEventReceivers that has overridden ItemAdded, ItemUpdated, and ItemDeleting. All the specifics of this particular field type are probably not super relevant, but one things to note is that inside of the "OnAdded" met...

Sharepoint Designer Workflow - value reset itself

I have a SharePoint Designer workflow like the following: (just an example) If ActionId equals 1 Email InfopathForms:Customer Email Sometime later, it changes itself to the following: If field equals 1 Email InfopathForms: Where the field ActionId is lost and the Customer Email is lost too. Also in the email body, all the Lookup field...

How to update a document of a sharepoint list using UpdateListItems

I'm able to delete a document in a list using this piece of code: // string fileRef = "folder/myplan.doc" private void DeleteDocument(string fileRef, string listGuid) { string strBatch = "<Method ID=\"1\" Cmd=\"Delete\">" + "<Field Name=\"ID\">1</Field>" + "<Field Name=\"FileRef\">" + fileRef + "</Field>" + "...

Link to another item in a sharepoint document library

Hi I am writing a custom Sharepoint solution and I have to fulfill a requirement that an item in 1 document library must be visiable in another document library, e.g. maintaining global company document which should display in all other librarys I need to sync properties, e.g. name so that when it changes in the source list it should a...

What is the best tag to store links in at the Web.Config file?

I may put the website on a different server and it has links linking it especially as it is on sharepoint so there are addresses and ports, so i thought it's better to save the link in Web.Config file in order not to need to change it a lot. So where is the best place or tag to put it in, like for example connection strings is at: config...

Sharepoint CMS vs UmbracoCMS

I work for a large local government organisation who are about to embark on using SharePoint to replace our ageing intranet with an all-singing all-dancing collaborative site. The focus for the intranet will be replacing random files, content pages and documents that are spread across the organisation with a SharePoint installation which...

Open document in edit mode from approval workflow email.

A MOSS 2007 Approval WorkFlow has been created for a standard Document Library (containing Word files). When the email alert goes out to the perspective user, the user clicks on the link within the email to review the document. The document opens as read only. Is there a way to open the document in edit mode? To be clear: Opening the do...

Dynamic SharePoint web part width and height

I am trying to dynamically adjust the width and height of a web part in a SharePoint web part page so that it fills up the entire available space. It appears that there is no way to choose a percentage for width and height from the web part property editor window in SharePoint. Also, trying to dynamically set it on the web part instance ...

Add a lookup field to a content type in sharepoint

How can I add a lookup field to a content type in sharepoint using the xml definition? (I'm getting errors). Things to note: - The lookup list will exist when the content type is added to the document library. - The lookup list will always have the same name. - The lookup list has a space in the name. This is what I've added to the xml...

SharePoint Approval

I need to add sharepoint approval to a list... and I was hoping to use the default approval process... but... I need to run some code once an item is approved. Do I have to then use VS to create a custom workflow? I need to run some code that currently runs in an event reciever. I need to move the code to another function (as we are ...

Is it possible to hide the Web File Properties dialog in Office 2003?

Hello, We're implementing SharePoint 2007 but have Office 2003 as our client. This causes problems when editing metadata since custom field types like BDC columns aren't represented properly within the Web File Properties dialog in Word. To get around this, we would like to disable the this dialog to force users to edit metadata with...

Store documents in file system instead of database in SharePoint document library

In a SharePoint document library, is there any way to store the documents on the file system instead of the database? ...

What is best practice for updating "New Item" on SharePoint form for a custom content type?

When creating a new list item based on a content type, the "New" dropdown box gives you a list of custom content types to choose from. When selecting the content type, you're taken to a form to fill out. At the top of this form it says "New Item." What is best practice for updating this label to show the actual content type name rather ...

Insert SPWebConfigModification at beginning of httpModules node

We've built a simple IHttpModule for our SharePoint deployment that catches exceptions and emails the developers the contents using the following foundation: public class ExceptionReporter : IHttpModule { //snip public void Init(HttpApplication context) { context.Error += new EventHandler(context_Error); } ...

Setting up a SharePoint development site based on production

Can anyone suggest a best practice way of setting up a decent and suitable development site in SharePoint from a pre-existing production site? I have a number of lists and document libraries that have been in production for some time, with some lookup field dependencies between them - whats the best way to replicate this within a non-pr...