sharepoint2007

Migrate SharePoint SubSite to a Different Site Collection Programmatically

Hi, Is it possible to move a MOSS subsite and content to a different site collection using the SharePoint API? For example, I would like to archive a subsite, by moving it from /teamsite/subsite1 to /teamsite/archive/subsite1. I am using MOSS 2007. Thanks, MagicAndi. ...

SharePoint - Rendering a wiki page without navigation bars

We use the SharePoint 2007 wiki, and I'd like to embed the contents of a wiki page onto our SharePoint Site's Default.aspx. There is a 'Page Viewer Web Part'. This can create an IFRAME which you can point at any URL... including the wiki page... but that includes tons of navigation bars and chrome. I'm hoping there's a way to strip the...

How can I synchronize time zone info across SharePoint site collections?

We are building a large SharePoint 2007 installation with several hundred site collections over four regionally hosted Web applications. We have approximately 12,000 users, spread out more or less evenly around the globe, and each user may visit many site collections - both on their "home" regional server and on other regional servers....

Create Server Name Mapping in SSP in Sharepoint 2007?

Hi: I have created a SSP and i am getting the results from here. The problem is that I have a list that the SSP is crawling and it gives me the internal URL. http://domain.com/ES/pubs/editorial/Lists/pubs/DispForm.aspx?ID=10 (or whatever) I want to change it for this: http://domain.com/ES/pubs/editorialFO/Paginas/searcher.aspx?IdPu...

Best practice for redesigning a SharePoint site

Basically need to use SharePoint (because we promote MS yay!) as a content management system for an internet facing site. How do I get rid of the default SharePoint look and feel and make it look like however I want it to? I know the process involves creating a new masterpage with SharePoint Designer. However I prefer to code webpages...

SharePoint Content Editor CSS customization caching

When SharePoint's content editor CSS file (HtmlEditorCustomStyles.css) is customized how can I get the updated css file updated on the client browser? In testing I've found the updated version is ignored in favor of the browser cached version and I've only been able to get the updated version by deleting the CSS file from the browser ca...

Anonymous access to a SharePoint site root

I have configured anonymous access on a SharePoint site for "Lists and Libraries". I then enable anonymous access to the individual lists/libraries as per my requirements. This works great, but I cannot access the root site URL where I expect to be redirected to the welcome page: Access to http://servername fails with Access Denied...

Elevated privileges in timer jobs

Can we use SPSecurity.RunWithElevatedPrivileges in SharePoint timer jobs? Under whose identity will the timer job run under elevated privilegs? Any gotcha's and must know facts regarding this will also be appreciated. ...

Adding Web Parts to the Page Instance based on Page Layout using Feature.

I am trying to add the Web Parts to Page Instance of the Page Layout using a Feature.I know it should be through AllUsersWebPart element .I could find the reference of adding a Default Web Part to Page Layout (PortalLayouts feature does it). Also I have seen same in onet.xml . I wanted to know if it possible to create an instance of the ...

Possible to have SearchCenter as standalone site connected to Intranet Portal?

I'm building a new Intranet Portal with SharePoint 2007 that will have News, Site Directory, and Search. Because I want to invest some serious time into customizing and tuning search, I would like to learn whether it is possible to have the Intranet Search live in its own top-level site collection? That would allow me to isolate and ba...

Is there a good reference SharePoint's databinding syntax?

I'm putting asp server-controls into my SharePoint XSLT using SharePoint Designer. I've found it's really handy for pre-populating values into the form, or providing a different experience than the SharePoint defined layout (hidden fields, etc). For example, I can use a asp:TextBox control instead of the SharePoint:FormField control if...

How to bind a SharePoint textfield to a dropdownlist?

I'm customizing a custom list form in xslt using SharePoint designer. In my list, I have a textbox that represents a numerical value. I would like to present this textbox to the user as a dropdown list with pre-defined values (1-7). Unfortunately, I can't use a SPFieldChoice because it is evaluated as a string in my SharePoint Designe...

SharePoint UserData and the ;# Syntax in returned data

Can a SharePoint expert explain to me the ;# in data returned by the GetListItems() call to the Lists web service? I think I understand what they are doing here. The ;# is almost like a syntax for making a comment... or better yet, including the actual data (string) and not just the ID. This way you can use either, but they are nicely p...

I need to have more information (an image and description) about a site in Sharepoint 2007?

Hello, I have a website in Sharepoint 2007 (it is a publishing portal). I want to create a site with more specific info than what it comes with Sharepoint. You know, when you create a new site, the only info you can enter is title and URL. I would need an image and a description. The solution is not a custom list, because i need to ha...

How to edit and read data in a SharePoint List

Hello all, I want to query a SharePoint list and want to use the data to be displayed in a usercontrol that I have created. Earlier I had the data coming from a database. Now I need to modify it to work with a SharePoint list. Can you please guide me. Grace. ...

Accessing a SPListItem from SPListItemCollection directly

Hi, I have a SPList object and use SPList.Items to get the SPListItemCollection. From this collection I need to access one SPListItem for which the UniqueID or GUID is not know. Is it possible to access the element directly using Display Name or any other information (other than GUID or UniqueId). Any idea will be appreciated. ...

sharepoint event receiver events not firing

I added a workflow to my document library (with a custom content type) and now my content types event receiver function itemcheckingin doesnt fire. Double checked my xml files and it's being properly refered to and other events (itemupdating, itemadding) are firing. Any ideas? ...

How to show customaction menu item depending upon user permission

I have a CustomAction menuItem <CustomAction Id="DocumentManagement.DocLibNewToolbar" Location="EditControlBlock" RegistrationType="ContentType" RegistrationId="0x0101002bae451fbd3640fb9bae5df410b4a9a0" Title="Print"> <UrlAction Url="~site/_layouts/ELSActionMenu/PrintListItem.aspx?List={ListId}&amp;ID={ItemId}"/> </CustomA...

Setting web part title from resource file

I am trying to set web part the title and description through a resource file. My .webpart file has this content: <?xml version="1.0"?> <webParts> <webPart xmlns="http://schemas.microsoft.com/WebPart/v3"&gt; <metaData> <type name="MyWebParts.MyWebPart" /> <importErrorMessage>Cannot import this web part.</importErrorMes...

How to query data in SharePoint from multiple lists

Hello All, I have multiple SharePoint lists and want to display data from them on to a gridview control. Please guide me. Grace ...