Saturday, July 28, 2012

Icons are not displayed for Adobe PDF documents

Icons are not displayed for Adobe PDF documents

Last Wednesday one of the SharePoint users asked me that he is able to see icons for the Ms Word, Excel, and PowerPoint but not for the PDF document.

Yes, to my surprise it does not show this out of box, why? I guess because this is an adobe product and not Microsoft. But yes we can easily show the icon for the PDF file.


So I decided to put this on my blog.
  • When we upload a PDF document this is how it looks in the document Library (The same way it will appear in search results).
 
  •  Now to change this to a PDF icon. First download a PDF icon on size(16x16 Pixels, not mandatory but this will fit the size perfectly) You can choose your own icon or can take it from here:
  •  Copy the image file that you want to use for the icon to the following folder on the server, as appropriate for your version of SharePoint:

    SharePoint Server 2007- Drive: \Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Image
    SharePoint Server 2010 - Drive: \Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Images
  • Start Notepad, and then open the Docicon.xml file (Open the Notepad with Run as administrator permission). The Docicon.xml file is located in one of the following folders on the server:

    SharePoint Server 2007- Drive: \Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml
    SharePoint Server 2010- Drive: \Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Xml
  •    Add an entry for the .pdf extension.

As example above a new Mapping line has been added to the file. The value attribute above should be the PDF icon you copied in the images folder.
  • Now do an IISReset.

     And yes Hurray. The PDF icon is appearing………………………

Saturday, July 7, 2012

Full and Incremental Content Deployment in SharePoint 2010


While working with content deployment I came to know that we can do the full and incremental deployment but I was unable to find the option to do the same through central administration in SharePoint 2010. I came to know there was an option to do the same in central admin of SharePoint 2007.


Then I searched and got hold of an old screen from 2007 where I saw the option to do the same as shown below(LEFT IMAGE).The same when I did from the central admin of SharePoint 2010 I did not find any option(RIGHT IMAGE).

SharePoint 2007 Content Deployment

SharePoint 2010 Content Deployment












These option screen shown above are available when u “create a new Job” as show in the screen below


So how do we create a specific Job of type Incremental or Full? After doing surfing I found out that it can be done using PowerShell. Yes we can create Jobs with using PowerShell rather than the step show in figure 2(Above). Note this script should be run after you have already created the content deployment Path as in my case “Local Deploy”. 

New-SPContentDeploymentJob -Name " Local Deploy - Incremental" -SPContentDeploymentPath 
"Local Deploy" -IncrementalEnabled:$true

Now if we create a job through UI in central admin by default it will create Incremental Only. Yes and how do we find this out?
To do that, run Get-SPContentDeploymentJob "Local Deploy - Incremental". You should notice the following line in your output:
 

So how do we create a Job with “Full Content Deployment”

New-SPContentDeploymentJob -Name " Local Deploy - Full" -SPContentDeploymentPath 
"Local Deploy" -IncrementalEnabled:$false


Reference Take by : http://sharepointlearningcurve.blogspot.sg/2010/05/sp2010-content-deployment-jobs-missing.html