Wednesday, April 28, 2010

Hiding Site Template(s) while creating new Site/Sub Site

Some times, there is a requirement to make invisible specific site templates to Site Collection Administrators so they cannot create sites for those templates. To do so, open respective webtemp.xml file in your XML editor and change  Hidden="FALSE" to “TRUE”. Path of webtemp.xml files is C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\1033\XML.
These templates are available in Collaboration category in MOSS 2007.
If, I want to give option only to create Wiki Sites, then I will make changes in webtemp.xml for Collaboration Category.
Do an IISRESET and create a new site. You will only see WIKI Site option under Collaboration Category.

Friday, April 16, 2010

Error creating Project Web Access Site

After installation of Project Server 2007, while creating new Project Web Access Site, there was an error. “The Project Application Service doesn’t exist or is stopped. Start the Project Application Service”.

Project Web Access 

Project Server Error

When I saw the services running on the Server in Central Administration Site, Project Application Service was stopped.

Project Server Error Service

Simply, I started Project Application Service and it worked fine for me and Project Web Access site was created successfully.

Project Server Error Service Soution

Wednesday, April 14, 2010

SharePoint Error : Cannot complete this action. Please try again.

Today, while creating a new web application, I got error “Cannot complete this action. Please try again.” I tried to create another web application but same error was there again. However, when I examined web applications pools in IIS, both new web applications were there. When I clicked on “Create Site Collection” link in Central Administration site, newly created web applications were there for selection.


And site collections was created successfully.



Friday, April 2, 2010

ItemEventDefinition XML Schema

ItemEventDefinition, defined in wss.xsd, defines XML schema for List Item Events in List and Libraries.

 <xs:complexType name="ItemEventDefinition">
<xs:extension base="EventDefinition">
<xs:element name="ContentTypeFilter" type="ContentTypeFilterDefinition" />
<xs:element name="FieldChangedFilter" type="FieldChangedFilterDefinition" />
<xs:element name="FieldExpressionFilter" type="FieldRefDefinition" />
<xs:attribute name="Scope" type="ItemEventScope" />
<xs:attribute name="EventType" type="ItemEventType" />
<!-- Item Event Scope Enumeration -->
<xs:simpleType name="ItemEventScope">
<xs:restriction base="xs:string">
<xs:enumeration value="Web" />
<xs:enumeration value="List" />
<xs:enumeration value="ContentType" />
<xs:complexType name="EventDefinition">
<xs:sequence />
<xs:attribute name="ReceiverAssembly" type="AssemblyStrongName" />
<xs:attribute name="ReceiverClass" type="AssemblyClass" />
<xs:attribute name="Sequence" type="xs:int" />
<xs:attribute name="ReceiverData" type="xs:string" />
<!-- Item Event Type, List Item Events -->
<xs:simpleType name="ItemEventType">
<xs:restriction base="xs:string">
<xs:enumeration value="ItemAdding" />
<xs:enumeration value="ItemAdded" />
<xs:enumeration value="ItemUpdating" />
<xs:enumeration value="ItemUpdated" />
<xs:enumeration value="ItemDeleting" />
<xs:enumeration value="ItemDeleted" />
<xs:enumeration value="ItemCheckingIn" />
<xs:enumeration value="ItemCheckedIn" />
<xs:enumeration value="ItemCheckingOut" />
<xs:enumeration value="ItemUncheckingIn" />
<xs:enumeration value="ItemUncheckingOut" />
<xs:enumeration value="ItemMoving" />
<xs:enumeration value="ItemMoved" />
<xs:enumeration value="ItemFileUpdating" />
<xs:enumeration value="ItemFileUpdated" />
<xs:enumeration value="ItemFileRenaming" />
<xs:enumeration value="ItemFileRenamed" />
<xs:enumeration value="ItemFileReceiving" />
<xs:enumeration value="ItemFileReceived" />
<xs:enumeration value="ItemAttachmentAdding" />
<xs:enumeration value="ItemAttachmentAdded" />
<xs:enumeration value="ItemAttachmentDeleting" />
<xs:enumeration value="ItemAttachmentDeleted" />

SharePoint OOTB Themes Extensions

The other day, I had created some SharePoint themes extended from WSS 3.0 OOTB themes. Here are some screenshots attached with this post.




Theme 2