moss

How do modify a form on a sharepoint site?

I have a task that I need to perform for a friend as a favor, to modify some forms on a MOSS/Sharepoint site to add some javascript to each form for some SEO tracking purposes. I've had a little bit of exposure to Sharepoint, but it is mostly by using the Sharepoint Designer 2007 tool. I am able to navigate to the site, and I can see t...

SharePoint MOSS Alternate Access Mappings

Hi In SharePoint MOSS I have a site at http://ourintranet/ I've now added a new entry to the Alternate Access Mapping for the domain http://www.mydomain.com pointing at this site. When I now type this in I get redirected to http://ourintranet/ and the visible url changes. Is there a way to have this work where by the domain remains as ...

Programming with Sharepoint directory list Moss 2007

I'm working with c#, and creating a sharepoint application page for creating a custom site. It's in Moss 2007 Now i want to add the site to the site directory. For that i need to use de catagories of de site directory. How can i fix that? I need to use a dropdown for showing the site catagories. Thanks for your help ...

Cannot catch the SharePoint Access denied error

I am trying to access a sharepoint list programmatically in a webpart, like this. try { masterList = web.Lists[listId]; } catch(Exception e) { RenderExceptionMessage(e.Message); } The RenderExceptionMessage() method is supposed to show a user-friendly error message inside the webpart. But the problem is that I am not able...

Deploying Layouts in SharePoint

I am developing publishing site. I have some layouts that are pre-populated with web parts and have a problem when I need to make some change on the layout. Deployment succeeds but I still see old version. If make I change in SP Designer it is reflected OK but not if the change is done by the feature that is being deployed. It looks lik...

How to accurately determine if an SPFile instance is a converted file?

I have been working on a document conversion feature for converting a docx file to a pdf file using MOSS 2007. The SPFile.Convert() call is being made in the ItemAdded event and the ItemFileConverted event is fired fine as well. The eventing seems to be working fine, but the IsConvertedFile and SourceLeafName properties of the converte...

Can a SharePoint list item have it's Targeted Audience calculated or otherwise automatically specified?

I want to show targeted (filtered) content from a list to users. I already have a column in the list that basically has the Target Audience value. This field is a multi-choice column (checkbox input) which I prefer over the current input field for Targeted Audiences. To get audience filtering to work I unfortunately need to have the T...

MOSS 2007 Search Center. Altering Scope of a Search

Hello All!!! I'm creating a new Sharepoint Site Collection and as a subsite I have a Search Center. After creating a new Content Search (File Share), I can search this using the Dropdown from the Home Page. Searching "sharepoint" with Scope "All" : returns 4 items Searching "sharepoint" with Scope "ISOs and Tools" : returns 2 items ...

SharePoint Blog Template Master Page Branding

This may be a simple question, but I am having a problem with it. I have multiple publishing SharePoint sites & sub-sites with a customized master page. I now have a sub-site based off the Blog site template. The custom master page is not being applied to it. I checked to make sure the site's master page setting it pointing to the cus...

Capturing title change event on SPWeb

I am listening on a particular SPWeb using an SPWebEventReceiver that is successfully firing on the WebMoved event. When the web is moved I update a list with the new location/title. What I would like to be able to do is listen for when the Web is renamed . Do I do this by attaching an item listener and waiting for an ItemUpdated even...

Explicitly changing a connection string for MembershipProvider

I am using the following provider to look up users from ADAM. I would be able to like to change the connection string dynamically depending on the type of user. How can I achiev this? <add name="con1" connectionString="LDAP://con1.url" /> <add name="con2" connectionString="LDAP://con2.url" /> <providers> <add name="Connec...

Sharepoint services (WSS) as custom web application Infrastructure

We are developing our own application Infrastructure to develop custom web applications for our customers which go around having standard web functionalities like CMS,locallization,Authentication etc.... Custom application can be any line of business/B2B/B2C application over web. Application can cater both intranet/internet user. It is ...

MOSS 2007 site in a farm type initializer exception

We have some solution that we built against a MOSS farm one of which includes a timer job. This job has been working just fine for months. Recently the administrator enlisted another server into the farm, and our timer job automatically started running on this new machine. As soon as this switch happened our timer job started yielding th...

MOSS Requirements Gathering

I'm engaged in a project with a customer that requires MOSS to be installed for Internet and Intranet. Unfortunately the client does not know what he wants. Is there a systematic appraoch usually used to gather MOSS requirement such as a set of questions usually business analysts ask to clear the direction and to manage the scope. Is the...

SharePoint Discussion Board "Last updated" field is not updated any more.

On of our SharePoint users informed me today about a strange behavior of a discussion board on one of his sites. Normally the standard "subject" view of an discussion list has a field named "Last updated" showing the date and time of the last post within the corresponding thread. On the discussion board of our user this field is never ...

ColdFusion: How to use SharePoint's getListItems() with ColdFusion

Hi, does anybody know, how i could get all items from a SharePoint-List? It should be possible to call the function getListItems() with 4 parameters. One for the list where the information is stored in. one for the query. the third for the displayed fields. and the fourth that specifies the number of rows to return. My code is: <cfob...

SharePoint: How to get a user's last logout or last session's end date/time

Hi, how could I determine the last login date/time of a user on a MOSS 2007 web application? Till now I didn't find this information within the object model. I've already thought about requesting the lastLogonTimeStamp form the AD/LDAP but this will be very imprecise. Another idea would be to write some code to store the login date/...

ServerContext.Current is null

I am facing strange issue. I have wep-part that reads data from user's profile. Everything is fine than I use short server name say http://server but I keep ServerContext.Current returning null then I access the same page with fully qualified server name say http://server.zone.local where zone.local is DNS suffix of the zone. Did anyon...

SharePoint 2007 Publishing site and Audience Targeting in Web Part

In a Publishing site I have web part that has to show news items from the list that has Audience Targeting field. I am using CAML query to retrieve small number of last news items. Is it possible to specify Target Audience in the CAML query ? If not, how should I do it ? Retrieve all results and than apply filter in a loop ? I am p...

Is it possible to format a NumberField in a page layout?

I'm developing a SharePoint publishing site and setting up its content types and page layouts. I need to display the value for a Year field with type Number. The markup currently is: <SharePointWebControls:NumberField FieldName="Year" runat="server" id="Year" /> The problem with the default behaviour is that it shows each number with ...