Article archive
Rich text field mode change
07/03/2014 16:44
When migrating from SP 2007 to SP 2013, rich text fields are not editable in Quick Edit mode any moreWork around is to change rich text field type from Compatible to FullHtml$web = get-spweb https://server/sitecollection$list = $web.Lists["Test Quick Edit mode"]$field = ...
Activate Infopath forms on all site collections
07/03/2014 14:41
#Script to take all your infopath forms in folder, upload to central administration and activate it on selected site collections (or all)#ActivateInfoPathForm.ps1 is on linkhttps://mypowershell.webnode.sk/news/activate-infopath-form-on-site-collection/#UploadInfoPathForm.ps1 is on...
Visual Upgrade to SP2013
12/02/2014 11:44
Add-PSSnapin Microsoft.Sharepoint.Powershell -ErrorAction SilentlyContinue
$ErrorActionPreference = "Continue"
$now = Get-Date
$xmlFilePath = "C:\yourOutputFile.txt"; #ouput from stsadm -o enumsites
$csvLogFileName = "VisualUpgraded.txt"
$csvLogSkipped = "VisualUpgradeSkipped.txt"
function...
Run preupgrade check
05/02/2014 11:14
1. Go to hive/bin
2. run
stsadm -o preupgradecheck
3 reports will be generated: txt, html, xml in hive/logs
Site.AllWebs access denied
05/02/2014 11:05
I encoutered following access denied error when trying to enumerate collection
$site = new-object Microsoft.Sharepoint.SPSite($siteUrl)
$site.AllWebs
Check
========
1. Make sure you have sufficient permissions in content database (your account what runs powershell)
2. Make sure you...
Add web part from Xml node by client object model
31/01/2014 13:23
Following XElement nodes are considered as xWebpart
<Webpart Src="Webparts\CEWP.dwp" PageUrl ="/SitePages/MyPage.aspx" Zone="LeftColumn" PartOrder="4">
<Replace What="tbTitleToken" With="My Webpart...
Add web part page from Xml node by client object model
31/01/2014 13:18
Following XElement as xPage:
<Page Src="Pages\WebPartPage.aspx" FileName="MyPage.aspx" FolderName="Site Pages" SetAsDefault="TRUE"/>
WebpartPage.aspx file is in our case webpart page with three columns, header and footer (just saved source from Sharepoint Designer).
Its code is at the...
Add list from Xml node by client object model
31/01/2014 13:11
Following XElement structure as xList:
<List Title="My Title" Url="mylisturl" Description="Some description" ListTemplateType="104" OnQuickLaunch="TRUE">
...
Set site collection welcome page by client object model
30/01/2014 17:42
ClientContext context = new ClientContext(webUrl);
Web web = context.Web;
context.ExecuteQuery();
...
Add list from schema Xml by client object model
29/01/2014 18:10
Actually in this snippet not really schema.xml is used, but only as xml source file, what is easy to get from visual studio.
Sharepoint Apps have standard way to deploy list, but this code was used for console application - create more lists without any deployment or features.
Following...
Items: 131 - 140 of 384