Posts

Showing posts from October, 2013

Save a publishing site collection as template in SharePoint 2013.

In SharePoint 2013, save as a template for publishing site is not available.While accessing directly it may prompt for Access Denied. In order to enable use the following power shell script. # Get a reference to the target site $web = Get-SPWeb http://Intranet.sites.com/Publishing # Update the property bage value and set it  to the string value "true" $web.AllProperties["SaveSiteAsTemplateEnabled"] = "true" # Commit the property change to server $web.Update()   Now you can access the save site as template through   http://sitename/_layouts/savetmpl.aspx  directly.

Upgrade a List definition WSP and install the feature.

In order to avoid the data loss from an existing list, while creating a new list definition in the same solution,Follow the below steps.... 1.Create a new list definition in a existing list definition solution. 2.Create a new feature (ex:" New_List_Feature "). 3.Include the newly created list definition to a newly created feature. 4.Build and Publish the list definition WSP from a solution. 5.Upgrade a WSP using the following power shell script. ( Update-SPSolution -Identity wspname -LiteralPath Physicalpath -GACDeployment ) Update-SPSolution -Identity ListDefinition.wsp -LiteralPath C:\Users\username\Desktop\ListDefinition.wsp -GACDeployment  6.Install the newly created Feature using powershell script. (Install-SPFeature FeatureFolderName) Install-SPFeature "ListDefinition_New_List_Feature" where folder name available in the C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\FEATURES

Add a custom Font in SharePoint

Add the following snippet into your style sheet (CSS). @font-face { font-family:Vanavil Avvayar; font-weight: normal; src: url(/_layouts/15/TEMPLATE/LAYOUTS/Fonts/Avvaiyar/avvaiyar.eot); } where URL is your custom font path. Use the online converter like  http://convertfonts.com/   to convert your .ttf file  to  @font-face css  use . Note :Client machine should be a custom font installed(ie. avvaiyar.ttf installed  ). For more info please read :  http://www.pcmag.com/article2/0,2817,1306847,00.asp