Tuesday, July 27, 2010

Configure usage reporting

About usage reporting
Usage reporting is a service that enables site administrators, site collection administrators, and Shared Services Provider (SSP) administrators to monitor statistics about the use of their sites. Usage reporting also includes usage reporting for search queries that can be viewed by SSP administrators for search and site collection administrators.

To configure usage reporting, a farm administrator must first enable Windows SharePoint Services usage logging for the farm that hosts the Web application containing the SSP. The SSP administrator enables and configures the usage reporting service. Then, site collection administrators can activate the reporting feature to enable usage reports on the site collection.

After usage reporting is enabled, site administrators and site collection administrators can view site usage summary pages that have the following information for their sites and site collections:

Requests and queries in the last day and the last 30 days.

Average number of requests per day over the last 30 days.

A chart of requests per day over the last 30 days.

A list of the top page requests over the last 30 days.

A list of top users over the last 30 days.

A chart of top referring hosts over the last 30 days.

A chart of top referring pages over the last 30 days.

A list of top destination pages over the last 30 days.

Top queries for the last 30 days (if search usage reporting is enabled).

Search results top destination pages (if search usage reporting is enabled).

SSP administrators for the search service can view a search usage reports page that tracks the following information.

Number of queries per day over the previous 30 days.

Number of queries per month over the previous 12 months.

Top queries over the previous 30 days.

Top site collections originating queries over the previous 30 days.

Queries per search scope over the previous 30 days.

Site collection administrators for the SSP site can view a usage summary page that tracks the following information:

Total amount of storage used by the site collection.

Percent of storage space used by Web Discussions.

Maximum storage space allowed.

Number of users for all sites in the hierarchy.

Total hits and recent bandwidth usage across all sites.

Site collection administrators can also view a site usage report that includes monthly and daily page hit totals filtered by the following criteria:

Page

User

Operating system

Browser

Referrer URL

Usage reporting is very useful for managing complex site hierarchies with many sites, a large number of page hits, and a large number of search queries, and it is recommended that the service be enabled for deployments of complex site hierarchies. For less complex deployments, usage reporting might not be necessary. It is also possible to disable the service temporarily to conserve resources when other those resources are needed for other processes.

Enable Windows SharePoint Services usage logging
Before you can enable usage reporting in a SSP, you must first enable Windows SharePoint Services usage logging for the farm hosting the Web application containing the SSP.

Use the following procedure to enable usage logging for the farm.

Enable usage logging for the farm
1.On the Central Administration home page, click Operations.

2.On the Operations page, in the Logging and Reporting section, click Usage analysis processing.

3.On the Usage Analysis Processing page, in the Logging Settings section, select Enable logging.

4.Type a log file location and number of log files to create.

5.In the Processing Settings section, select Enable usage analysis processing, and then select a time to run usage processing.

6.Click OK.

For information about how to perform this procedure using the Stsadm command-line tool, see Usage Analysis: Stsadm properties (Office SharePoint Server).

Enable usage reporting
After Windows SharePoint Services usage logging is enabled in the server farm, SSP administrators must enable the usage reporting service. SSP administrators can control the complexity of usage analysis processing, and select whether or not reporting is enabled for search queries.

Use the following procedure to enable usage reporting.

Enable usage reporting:
1.On the SSP home page, in the Office SharePoint Usage Reporting section, click Usage reporting.

2.On the Configure Advanced Usage Analysis Processing page, in the Processing Settings section, click Enable advanced usage analysis processing.

3.In the Search Query Logging section, select Enable search query logging.

4.Click OK.

If advanced usage analysis processing is not selected, usage reporting statistics will be minimal.

For information about how to perform this procedure using the Stsadm command-line tool, see Usage Analysis: Stsadm properties (Office SharePoint Server).

Activate usage reporting
After usage reporting is enabled for the SSP, site collection administrators must activate the reporting feature. Until the reporting feature is activated on a site collection, usage reports are not available.

Use the following procedure to activate the reporting feature.

Activate the reporting feature:
1.On the Site Actions menu, click Site Settings.

2.On the Site Settings page, in the Site Collection Administration section, click Site collection features.

3.On the Site Collection Features page, click the Activate button for the Reporting feature.

For information about how to perform this procedure using the Stsadm command-line tool, see Usage Analysis: Stsadm properties (Office SharePoint Server).

Monitor usage reporting

Usage reporting can be viewed in several places:

Site administrators, including administrators of the SSP administration site, can view usage reporting for their site by clicking Site usage reports in the Site Administration section of the Site Settings page.

Site collection administrators can view usage reporting by clicking Site collection usage reports in the Site Collection Administration section of the Site Settings page.

Site collection administrators for the SSP administration site can view a usage summary by clicking Usage summary in the Site Collection Administration section of the Site Settings page.

SSP administrators for search can view search usage reports by clicking Search usage reports in the Search section of the SSP home page.

For information about how to perform this procedure using the Stsadm command-line tool, see Usage Analysis: Stsadm properties (Office SharePoint Server).


ref: http://technet.microsoft.com/en-us/library/cc262541(office.12).aspx

Thursday, July 22, 2010

Applying custom Master Page for perticular page inside a site

Issue:

Quick Launch should not appear only for perticual list pages(NewForm.aspx, EditForm.aspx etc)


Solutions:

Step 1) Create Custom Master Page (xyz)

Step 2) Apply this Custom Master Page to the List Forms


Step1:Create Custom Master Page (xyz):


1) Open Sharepoint site (http;//madhunomula/rnd/) in Sharepoint Designer

2) Browse for Master page Catalog( _Catalogs -- Masterpage --- MadhuMasterPage.master (your master page))

3) Copy and paste the Master pages in same location and rename it ( _Catalogs -- Masterpage --- CustomMadhuMasterPage.master )

4) Remove quick launch menu from thsi custom master page)



Step2: Apply this Custom Master Page to the List Forms

1)Browse for Lists --- Customlist ---NewForm.aspx


2) In the menu bar of Designer Format---Master Page --- Attach Master Page ----Specific Master page ---Browse for custom Master page (CustomMadhuMasterPage.master)

3)Ok

Done

Friday, July 16, 2010

Preventing Folder Creation on MOSS 2007 Document Libraries

Question:

we have created Custom Folder Content types. users are having Contribute permission. They should not allow to create folders, but they can upload documents.

**********************************************************************************
Answers:
------------------------------------
1.Document Library Setting -->Advanced settings --> Folders ( Display "New Folder" command on the New menu? ) click on no radibox.

2. If you attach folder content on the Document library then remove it
Document Library Setting -->Advanced settings -->Content Types -->Remove your content type from Document library.
-----------------------------------
**********************************************************************************
Write event handler:

ItemAdding properties:
if (((string)properties.AfterProperties["ContentType"]) == “Folder”)
{
properties.ErrorMessage = "You can't create folders";
properties.ListItem.Delete();
}
}


Note:

This solution works when the folder is created using the Doc Library menu interface. If, however, the user opens the doc library in Windows Explorer view the ContentType check does not catch it.

Add this and you will catch the Explorer view events as well:

if ((((string)properties.AfterProperties["ContentType"]) == “Folder”) properties.AfterUrl.ToString().Contains(“/”))

Monday, July 12, 2010

Create a custom list form (EditForm) with few Read only fields And Associating with A List

Creating Cusotm EditForm Page for this test list and enabling few fields as read only
Step 1
Open site with sharepoint desingner
http://madhunomula/RND


Step 2:
Browse the perticular list
Lists--> Test List-->
Step3:
Copy the EditForm and Paste in the Same location
Step 4:
Checkout the copied form and rename to EditFormNew.aspx
Open this form in designer and remove the existing Data form webpart from webpartzone
Step5:
File --Edit--View--Insert----->Sharepoint Controls--> Custom List Form,
Now select the List Name and Select the form type as Edit Item Form
Step6:
Now in Disign click on the control ex Title
And in code view change the control property ControlMode="Edit" to "Display"

Note:
It is not possible to ControlMode="Edit" to "Display" for Dropdown list, date time control, peopl picker control,
So right click on the control and change Format Item As Text and change the disable-output-escaping as yes
xsl:value-of select="@Decision" escaping="yes"




Associating This Page with A List

After you create a custom list form, you can associate it with the list for which it was created. Until you associate the custom list form with the list, the custom list form will not appear in the browser when users create, view, or edit items in that list.

In the earlier example, you created EditFormNew.aspx for the Test list,

so the next step is to associate EditFormNew.aspx with the Test list.

1.In the Folder List, right-click the list or library with which you want to associate the custom list form — in this example, Test List— and then click Properties on the shortcut menu.
2.In the List Properties dialog box, click the Supporting Files tab.
3.If your list is configured to allow multiple content types, in the Content type specific forms list, click the content type for which you want to use the custom list form.
Each time you change the content type, the text boxes change to display the forms used for the current content type. Each content type can use a separate set of custom list forms.

4.Under Disply item form, click Browse, locate and click the custom list form — in this example, EditFormNew.aspx — and then click OK.
The path to the custom list form now appears in the New item form box.

5.Click OK.
If you have followed the example, you can test the new custom form. To do this, click Default.aspx in the Folder List, and then click F12 to open the page in the browser. In the browser, under Announcements, click Add new announcement to open the custom new item form.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------
By Default append changes list data will not show in custom edit form

To overcome this issue add one more given line to the field following


< SharePoint:AppendOnlyHistory runat="server" fieldname="YourCommentsFieldName" controlmode="Display" >




Sunday, July 11, 2010

MOSS 2007 - Save site as a template missing

You would go to

http://siteurl/_layouts/savetmpl.aspx

and then you would be able to save the site as a template.

Madhu N