Wednesday, December 19, 2012

How to display file extension in document library for SharePoint 2010 site



We have 'Type' column in document library which will display respective document ICON in a view, but there is no direct OOTB way to display file extension in any of the SharePoint column.
e.g. I have uploaded 'abc' word document and I want to display 'abc.doc' in one of the SharePoint column.

Though I have found below articles which talks about how to display file extension in SharePoint 2007 site by using SharePoint Designer 2007 and converting list view to XLST data view web part, but as of now I haven't find any good articles which point me to right direction for SharePoint 2010 site.

Reference links for how to display file extension for SharePoint 2007 site:


I have played around with display form in SharePoint Designer 2010 and somehow I am able to display file extension in document library, now if someone asks me to perform same steps into other site then again I have to look more deeply for exact steps J

At last, we need to make changes in list display form with below XSL tag which will display file extension in document library.

<xsl:value-of select="$thisNode/@FileLeafRef.Name" />.<xsl:value-of select="$thisNode/@File_x0020_Type" />

Hope above information will help!

How to enable site pages document library in SharePoint 2010



In one of the SharePoint 2010 site I don't see 'Site Pages' document library, after some research I have found that we have to activate "Wiki Page Home Page" feature to see site pages library into SharePoint 2010 site.

Friday, October 26, 2012

Activate Office Web Apps Feature on site collections in SharePoint 2010

g_instanceId undefined error in Meeting Workspaces

When I have moved MOSS 2007 site to SharePoint 2010 server and applied custom SharePoint 2010 master page - at that time I was getting JavaScript error ‘g_instanceId undefined error’ in every meeting workspace site from moving from one date to another date.

After searching online, I have found that it is known issue in custom SharePoint 2010 master page. To resolve the issue we have to add 3 lines to custom master page.

SharePoint Development Best Practices

How to make ASP.NET Image button as default button




I have 2 textbox and 2 image button and I wanted to trigger first image button when any user press 'enter' key. so for making any image button as default button, we need to add 'defaultfocus' attribute into HTML FORM tag with image button name.

e.g.
<form id="form1" runat="server" defaultfocus="imagebutton1">