Friday, December 11, 2009

SharePoint Audit Log Report

To specify the events which we need to track, Go to Site Actions > Site Settings > Modify All Site Settings > Site Collection Administration > Site collection audit settings.











 







Select all the events for tracking the log from the list of check boxes and save the settings.




  



By default the link Audit Log Reports will not be visible under Site Collection Administration as it is not activated.
To activate it Go to command prompt use below STSTADM command
stsadm -o activatefeature -name Reporting -url http://web-application-url -force

To see the audit reports, go to Site Settings > Site Collection Administration > Audit log reports.

Friday, May 8, 2009

SharePoint Add Custom styles to Rich Text Editor or Content Editor Web Part

To get available the custom styles (css classess) in content editor web part-Rich Text Editor, the custom style (css class) name in css file should be preceded with ‘.ms-rteCustom-‘. So the final class name will look like .ms-rteCustom-ClassName

Add the below css class in your css file (which is used for your site) and save it.
.ms-rteCustom-TestClass
{
Font-size:12pt;
}


Go to content editor web part tool pane and open Rich Text Editor. Now the above added class will be available under the styles tab on editor.

Add the text in the editor --> select the content --> go to styles tab --> select the TestClass class.

The TestClass style will be applied for the selected content.