Wednesday

Sign in as different user is missing in SharePoint 2013..


Sign in as different user is missing in SharePoint 2013. It will be very difficult for testing scenarios with different users. I use this functionality very frequently. I guess Microsoft wants that user don’t hack the site by typing wild guessing the passwords.

There are three options to sign in as different user


1)  Just go to start->programs->IE and shift-right click and “run as different user”


2)    a) Locate and then open the following file in a text editor:  C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx and add the following element before the existing “ID_RequestAccess” element:

” Description=”<%$Resources:wss,personalactions_loginasdifferentuserdescription%>” MenuGroupId=”100″ Sequence=”100″ UseShortId=”true” /> and save the file.

3) Access the SharePoint site by using the following URL:
http:///_layouts/closeConnection.aspx?loginasanotheruser=true

Hide Ribbon on SharePoint 2013 using CSS


In SharePoint 2013 MS has divided whole ribbon in two section: s4-ribbonrow and suiteBar.



Step 1)  Add the style tag to hide the ribbon for all the user in master page
#s4-ribbonrow, #suiteBar { display : none; }

Step 2) Find out the
tag and insert the following code inside this div:





Tuesday

Connect to Outlook greyed out in SharePoint 2013?


You might notice some inconsistency with the “connect to Outlook” button in SharePoint 2013.  Sometimes it seems to work, other times you may see this “control is greyed out” message below. 

 


It's because of the effect of one of 2013’s coolest new features – the Minimal Download Strategy. You can find more  about here in one of my blog here

 just hit F5 & try it again. You should be able to see that the  control is functional. It should temporarily allow you to work instead of waiting.

Minimal Download Strategy in SharePoint 2013

Minimal Download Strategy in SharePoint 2013 is one of the coolest features that got introduced in SharePoint 2013 and is enabled by default and can be disabled using EnableMinimalDownload property and settings its value to False. It improves client rendering performance and fluidity when navigating from page to page by download only the changes between two compatible pages. Fewer bytes will be downloaded and the page will appear more quickly.


In previous versions of SharePoint, unlike with Minimal Download Strategy, when a user navigated between pages the entire page (chrome and content area) were reloaded. Minimal Download Strategy significantly reduces the amount of data that needs to be downloaded and reduces the amount of markup, css, scripts, etc. that the browser needs to parse and render improving overall performance and provides smoother transitions.


As previously mentioned, Minimal Download Strategy is made possible through a new download manager that interfaces between the client and server. The download manager understands controls whose display context is the current Url, controls that can potentially change a Url (I.e. Quick Launch), controls that both have a display context of the current Url and change change a Url (breadcrumbs), and controls that do neither such as images.


Minimal Download Strategy uses a single .aspx file (start.aspx) for your pages, with the actual URL encoded in the text following the hashmark (‘#’). When navigating from page to page, only the changes between two compatible pages will be downloaded.


The download manager follows a subscriber/publisher model therefore each control must register its events with the download manager for example when navigation download starts, ends, is cancelled, or fails. The download manager is also responsible for managing the delta or the difference between the source and destination page.







Monday

Geolocation Field Type - SharePoint 2013


Geolocation Field Type -

SharePoint 2013 Introduces a new field type named Geolocation that can show Bing maps instead of location entered in list item. In a Column of type Geolocation, you can enter location Info as a pair of latitude and longitude coordinates in decimal degrees or retrieve the coordinates of the user’s current location from the browser. 

People in Video - SharePoint 2013



People in Video - People in videos are a new column that is included in Video Content type.  User can specify people who are a part of the Video to be included as Video Metadata. 

eindex List/Reindex document library


There is a new Option Reindex List and Reindex document library that allows users to force the Content of list and library to be re-indexed. So it means the whole list or library to be picked up by a Continuous crawl, regardless of whether the items have actually changed.

Go to document library settings – Advanced Settings 


Click on the below Reindex Document Library or Reindex List






It will prompt the following






Now the whole list or library will be picked up by a Continuous crawl

Thursday

Enable Report to Moderator in SharePoint 2013 Community Sites

 In previous version of the discussion boards,  for some high profile enterprise discussion boards required a dedicated resource to monitor for any offensive comments. But in SP 2013 admin can enable reporting of offensive content. As soon as that is enabled users can see a option to Report to Moderator and sends an email to admin's thereafter they can delete such offensive comments. So, users themselves do the moderation instead of a dedicated resource.

Word to PDF Conversion in SharePoint 2013

Great news!!. SharePoint 2013 now supports PDF's out-of-box.  You can convert Word to PDF and also Search and Open the PDF's.

Tuesday

Download a copy in SharePoint 2013


Download a copy By using Download a copy” option, end users can download a copy of the document to their local machine.



Find a File in SharePoint 2013


Find a File –Find a file” search box is the new feature in SharePoint 2013 that has been added to each Document Library which can help users find files form within a Library. This is in addition to the main site search.




Wednesday

Search Videos with the new “People in videos” column in SharePoint 2013


Search Videos with the new “People in videos” column in SharePoint 2013


A new Column “People in videos” of Video Content type has been Introduced where you can specify people who are in the Video to be included in Video Metadata.The column is available when you edit the properties of your Video that you uploaded in Site Asserts library.

if you enter someones name in the site Search box and select the scope “Videos”, you will find all videos where this person was added in “People in videos” column.It looks like a facebook Photo tagging fetaure.

SharePoint 2013 RTM Now Available


SharePoint 2013 and Office 2013 RTM are now available publically for MSDN subscribers. Following are the links.

SharePoint 2013 and Office 2013 RTM now available on MSDN





What is SharePoint 2013 App


SharePoint 2013 App


In simple words, some of the SharePoint Components like Lists, Libraries,Sandbox or  Custom Applications,few Features like Event Receivers(remote) or Field types (based on existing field types) are termed as “Apps”. So now if someone want to say “Add a new List” to SharePoint, they should probably say “Add a List App” to SharePoint instead.

SharePoint 2013 Certifications

Excited!!! about SharePoint 2013 Certification. It will be published by February 2013.

First hand look please click the below links.

SharePoint 2013 Microsoft Certification Exams:

Friday

SharePoint NewForm not working

Hi All,

    If you do customization to newform/dispform/editform. Sometimes there are some chances to get the page corrupted and all the lists in that sub site don't work. The best solution is to replace the guid with new one. Make sure to change the guid's to lower case and just fit it the existing guid.

Click here to create guid

Thursday

STSADM Commands for Solutions and Features

Working with Solutions


stsadm –o addsolution –filename “D:\Deploy\MySharePointSolution.wsp
We used the following command to deploy the solution once installed to a specific web application:
stsadm –o deploysolution –name MySharePointSolution.wsp –url http://myspwebappp –allowgacdeployment –immediate
If we would upgrade an existing solution, we would use the following:
stsadm –o upgradesolution –name MySharePointSolution.wsp –filename “D:\Deploy\MySharePointSolution.wsp” -immediate
And finally, we used the following commands to retract and delete a specific solution from the web application:
stsadm –o retractsolution –name MySharePointSolution.wsp –url http://myspwebapp –immediate
stsadm –o deletesolution –name MySharePointSolution.wsp
Now, let us see how we could do above operations with PowerShell. For this, we use the following PowerShell commands:
Add-SPSolutionD:\Deploy\MySharePointSolution.wsp
Install-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myspwebapp –GACDeployment
If you would like to add the solution as sandboxed, you would use the Install-SPUserSolution command instead. To upgrade a solution, we specify which solution is to be updated and with which new solution file:
Update-SPSolution –Identity MySharePointSolution.wsp –LiteralPath “D:\Deploy\MySharePointSolution.wsp” –GacDeployment
To retract and remove a solution, we use the following commands:
Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myspwebapp
Remove-SPSolution–Identity MySharePointSolution.wsp

Working with features

Similarly, commands exist for working with features. The stsadm equivalents:
stsadm –o activatefeature –name MyFeatureName –url http://myspwebapp
stsadm –o deactivatefeature –name MyFeatureName –url http://myspwebapp
Needless to say, there are easy equivalents in PowerShell:
Enable-SPFeature –Identity MyFeatureNameOrGuid –url http://myspwebapp
Disable-SPFeature –Identity MyFeatureNameOrGuid –url http://myspwebapp

A deployment or retraction is already under way for the solution

It occurs if anomalies deployment is running for the some package in the backend and some previous deployment has been crashed before due to reason.
To resolve this problem do the next steps:
1.       Run the command prompt
Click "Start", click "Run" type cmd
2.       Go to web server extensions folder
cd C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
3.       stsadm -o execadmsvcjobs
OR
Locate deployment jobId to break the running process
stsadm-o enumdeployments
Then cancel the deploy
stsadm-o canceldeployment-id "GUID jobId"

Tuesday

Visual Web Part SharePoint 2010 Tree View

Monday

Disable approval workflow for a publishing site in SP2010

Most of the times, When you request publishing site you may end up with publishing site with workflow. If you don't want the approval workflow for a publishing site then you can do the following two steps.


1.  Go to the Pages library settings and click on versioning settings and click “no”:
2.  Click workflow settings and remove the approval workflow:

Tuesday

SharePoint 2010 Browser Support

SharePoint Server 2010 works best with up-to-date, standards-based web browsers.

The following are supported browsers running on the Windows operating system:
  Internet Explorer 7 (32-bit)
  Internet Explorer 8 (32-bit)
 
The following are supported browser options with known limitations:
  Internet Explorer 7 (64-bit)
  Internet Explorer 8 (64-bit)
   Firefox 3.6 (32-bit) on Windows operating systems
   Firefox 3.6 on non-Windows operating systems
   Safari 4.04 on non-Windows operating systems

Wednesday

SharePoint Selected Links in a Links List Open in a New Window

If you want selected link in a links list or summary link in SharePoint follow the steps.


Step 1: Copy and paste the following code in your master page above the closing head tag and also replace the square bracket with anchor bracket.
                                                [script language="JavaScript"]
_spBodyOnLoadFunctionNames.push("rewriteLinks");

function rewriteLinks() {
     var anchors = document.getElementsByTagName("a");
     for (var x=0; x
          if (anchors[x].outerHTML.indexOf('#newwindow')>0)
{
               
oldText = anchors[x].outerHTML;
              
newText = oldText.replace(/#newwindow/,'" target="_blank');

               anchors[x].outerHTML = newText;

          } } }
[script]

                                               
Step 2: If you want selected link to open in a new window just type #newwindow after the url as shown  below.

Thursday

Display PDF File in SharePoint

By using “Content Editor Web part” we can display PDF File in
SharePoint site.
  1. Add a “Content Editor Web part” to your SharePoint page.
  2. Click on the “Open the Tool Pane”, click on “Source Editor” to place the HTML source.
  3. Place the following piece of code in to the Source Editor and click ok
    src=”http://source/test.pdf” type=”application/pdf”>

Friday

SharePoint 2010 Ribbon scroll like a normal site!

Hi All,

    I got couple of emails regarding the scrolling issues with SharePoint 2010, One of them had issues with visitors unable to read the content which is available in the bottom of the page. so the best solution as follows:


  1. First thing you need to do is remove or change scroll=”no” to “yes” in the – this will make the page scroll conventionally.
  2. Next you need to remove or change the “s4-workspace” ID tag from line 293 (in v4.master).
  3. I usually just rename it to s4-workspaced so if you need to change it make, you can just remove the ‘d’
  4. Next you need to add some CSS either in a referenced custom stylesheet or directly in the masterpage. The CSS code is very simple it is - body {overflow:auto!important;}

Monday

Build dynamic string SPD workflow activity in Sharepoint 2010

Hi All, 

Build dynamic string SPD workflow activity in Sharepoint 2007 is no more directly available in SharePoint 2010. In order to activate you need to do the following activities.

Step 1: Navigate to \Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\1033\Workflow on your system drive

Step 2: Open the WSS.Actions file (this is where information about all default SPD actions is stored)

Step 3: Find "Build Dynamic String" and change the "AppliesTo" parameter from "DisplayOnly" to "all". Save the file

Step 4: Run IISReset, re-open SPD - you should now have the Build Dynamic String action available.

Tuesday

Hide column header in a SharePoint list web part

To remove these annoying headers I used a simple content editor web part. Open up the Source editor and enter the following three lines:
style
.ms-viewheadertr { display: none;}
/style
Under Layout in the Content Editor Web Part check the “Hidden” check box so you’re web part wont’ be seen on your site and click OK.  The column headers will now be hidden from view.

This method can also be used to hide and/or change the look of other aspects of your SharePoint site without using SharePoint Designer or making any custom modifications.

Wednesday

How to Remove I like it -- Tags and Notes using SharePoint Designer

There are two ways to remove social tags i.e. I like it ---  Tags and Notes

1) go to central admin- Farm Management -- Manage Farm Features-- Deactivate Social Tags and Note Board Ribbon Controls, but it will impact all the web application.

2) using SharePoint Designer open the master page i.e. v4.master and add style="display:none" to the following code.
                                     class="s4-socialdata-notif" style="display: none"                                        SharePoint:DelegateControl ControlId="GlobalSiteLink3" Scope="Farm" runat="server"                                   

                                   
                                       
                                   

Tuesday

“You must specify a value for this required field” error when hidding PlaceHolderPageTitleInTitleArea

 Instead of commenting or deleting the following code

asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server

use style="display:none;" as follows

asp:Panel style="display:none;"

asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server" /

asp:Panel

 

When customizing SharePoint 2010 MasterPages you often don’t want certain content placeholders to show up on the page.  You should not delete or comment these elements out but instead set the visible=”false”  or display:none attribute on the content placeholder.  


 

Friday

Add BCC Recipient in SharePoint Designer 2010 Workflow E-Mails

When you design your email in SharePoint Designer workflows, you do not get the opportunity to include blind carbon-copy recipients. Here is the initial screenshot:

In order to add BCC, you need to click Advanced Properties located in the ribbon UI:

This will launch a separate window where you can now set your BCC recipients.

Thursday

How To Hide Ribbon From Visitors in SharePoint 2010

  •       Open your SharePoint master page
  •       Locate this line:
    <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle">
  •       Change it to: <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle" style="display:none">
  •       Now find the end of the “s4-ribbonrow” tag and add following block right after it:
<Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddAndCustomizePages">    <script type="text/javascript">        document.getElementById("s4-ribbonrow").style.display = "block";
    script>
Sharepoint:SPSecurityTrimmedControl>
  •       Save the new master page and publish it.