Skip to main content

Posts

Showing posts from July, 2012

Sharepoint interview questions

Difference between Site Template and Site Definition <<http://www.c-sharpcorner.com/uploadfile/Roji.Joy/differences-between-site-definition-and- site-templates/>> http://msdn.microsoft.com/en-us/library/aa979683 What is feature stapling http://www.etechplanet.com/blog/understanding-feature-stapling-in-sharepoint-7c-stapling - features-to-site-definitions.aspx http://blogs.msdn.com/b/kunal_mukherjee/archive/2011/01/11/feature-stapling-in-sharepoint - 2010.aspx http://msdn.microsoft.com/en-us/library/bb861862(v=office.12).aspx difference between sharepoint 2007 and 2010 solution << http://www.milesconsultingcorp.com/SharePoint-2007-versus-2010 - comparison.aspx#SoftwareDevelopmentChanges>> feature upgrade steps http://www.sharepointnutsandbolts.com/2010/06/feature-upgrade-part-1-fundamentals.html http://www.rharbridge.com/?page_id=103 http://blog.petermunch.net/2010/04/30/versioning-and-upgrading-your-features-with - sharepoint-2010-application

Sharepoint 2010 Search auto suggest

Sharepoint 2010 has a new OOB search auto complete feature. This is a pre search added enhancement new in sharepoint 2010. If the keyword is entered 5 times, the sixth time onwards it would be shown to the user while typing the keyword. Admins can add certain keywords to the query database, using powershell. Details on how to do it can be found in http://technet.microsoft.com/en-us/library/hh148698.aspx Using powershell and csv file to add multiple keywords is exlpained in http://get-spscripts.com/2010/07/add-pre-query-search-suggestions-with.html Custom sandbox solution for the same can be read in http://www.sharepointusecases.com/index.php/2010/04/search-autocomplete-for-sharepoint-2010-lists/

Add custom tab for search in MOSS 2007

The requirement was to have a custom tab which would get search results only from one site in the site colletion Steps done In the SSP, do the following 1. Create a new content source, with the site url and setting "Crawl only the SharePoint Site of each start address" selected 2. Create a new scope - Add rule to include content from the newly created custom content source 3. On the all site content source, add a new rule to exclude content from the custom content source 4. Run a full crawl on custom content source In the Site Settings, do the following 1. In Site Collection Administration settings - click on Search Scopes 2. Create a new display group  and select the custom scope created 3. Go to Search site and create customsearch page, customsearchresults page and customadvancedsearch page 4.In Search site, default page , click on Edit page 5.Click on Add New Tab and for Page, give the newly created search page url. Click ok and publish 6. Click on Custom ta

Display an icon in search results page in MOSS 2007 to indicate pictures in the list item

The custom list had a column called as Snapshots which was of the type Hyperlink or Picture. The need was to customize the search results page to display an indicator for list items with images. To do so, go to SSP - Search Settings - Metadata properties - New Managed property In the New Managed Property window, do the following- Enter the property name and select the property type as text In Mappings to crawled properties - select 'Include values from a single crawled property based on the order specified' Click on Add mapping and find the custom list column and click Ok Click OK on the managed property window. Then Do a full crawl Edit the search results page and edit search core results webpart In Result Query option - selected columns, add the custom column In the XSL editor - add the following <xsl:variable name="Customicon"> <xsl:value-of select=" <enter the column name> " /> </xsl:variable> <xsl:choose> &l

SP2013 preview beta available

Check out for more info on SP2013 Preview http://technet.microsoft.com/en-us/sharepoint/fp142366 http://sharepoint.microsoft.com/en-us/preview/sharepoint-resources.aspx 2013 sharepoint http://msdn.microsoft.com/en-US/sharepoint/fp123576 To know more about Sharepoint Apps http://msdn.microsoft.com/en-us/office/apps/fp160950.aspx http://msdn.microsoft.com/en-us/library/office/apps/jj220030(v=office.15 )

The URL 'XXX' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.

When trying to upload document or attachment, the error "The URL 'XXX' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. " comes up. This could come up if Sharepoint 2010 is installed as stand-alone server and the content DB has reached 4GB. When SP2010 is installed as stand-alone server, it stores all the databases in SQL Express 2008, which comes bundled with SP2010. It would not configure to any other server instances, even if it is installed in the server. To resolve the issue, refer the link http://www.smattie.com/2012/04/14/how-to-fix-sql-server-express-db-size-limitation-of-4-gb/ Or else take a backup of the farm and uninstall Sharepoint 2010 and reinstall as a single server farm installation. Configure it with SQL 2008 developer or enterprise edition or with SQL 2008 R2 edition. Restore the content DB to the new setup and perform a DB upgrade command on the restored content DB.

How to change the time zone for Sharepoint 2010 Central Admin, Web Application and Sites

To change the time zone for the Web Application - 1. Go to Central Admin - Application Management - Under Web Applications, select Manage Web Applications 2. Select the webapplication required, and on the ribbon select General Settings - General Settings 3. In the new window, select the default time zone required. To change the time zone for the Site - Go to Site Actions - Site Settings - Reginal Settings To change the time zone for Central Admin - There is no direct url present from central admin to change the timezone Add /_layouts/regionalsetng.aspx after the central admin url to get the regional settings window E.g. the url would be http://<servername>:<portno>/_layouts/regionalsetng.aspx

VseWSS1.3 System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.

When trying to deploy the wsp thru stsadm command for MOSS 2007 site, the installation failed. In the command prompt, it just showed, the Solution installation failed. Or  When trying to deploy it thru VS2008, it gave error VseWss 1.3 - System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. To resolve – Open inetmgr and check the app pool for VseWSS. Ensure the app pool has complete access on the site collection and on the farm.

Error:'The following users do not have email address specified', when setting alerts in MOSS 2007

The above error occurred when trying to set alerts for users in one of site in MOSS 2007. The outgoing email is configured and there were no errors during that time. [Note - the SMTP server was configured months after MOSS was installed and site was up and running in the server] Go to SSP and in User Profile and Properties and select View Import Connections. If no connections are present, create a connection with the ad. Then do a full import. This would solve the issue. The error could still be coming because, the emails are sent based on the email address stored in the UserInfo table and it has not been synced with the email address in the user profile properties in the SSP. Would have to run the stsadm commands to sync the both. Command - stsadm -o sync -synctiming m:3 http://technet.microsoft.com/en-us/library/cc263196(v=office.12 ) If the issue still persists, delete the users from Sharepoint users and groups in the site, and add them again and run the sync job. This wou

Add images to items in custom list in Sharepoint 2007

Had a requirement to include images to a custom list (along with single-line and multi-line columns) in Sharepoint 2007 server. There were around 100 items to be added and wanted to find a work-around than adding as attachments to the respective items. Created a standard name format for the images Eg Name1, Name2 etc in the harddisk Created the custom list with the required columns and for image created Hyperlink or Picture column and selected the format for image as Hyperlink. Create a picture library in the site. Opened the picture library in Windows explorer and copied the images to the Picture library The image url now would be http://<siteurl>/<listname>/<imagename.imageformat> for eg - http://xyzsite.com/Piclib/Name1.jpg With a little of formatting in excel the column with the url's can be created. Edit the list in datasheetview and copy-paste the url row to Image column, in the list If required, can change the Image column format to Picture and it