Tag Info

Hot answers tagged

3

Option 1 How to add/upload publishing page layout via CSOM in PowerShell: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client") [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime") Function Get-ClientContext([string]$Url,[string]$UserName,[string]$Password) { $SecurePassword = $Password | ...


3

Why are you using the client side ID. Use the server side ID "abc". It will work. Regards.


2

Yes this is sharepoint OOTB error.. No solution for this If you want all users to have search enabled you can break permission and give them contribute permision at list level. Enable the show ribbon ->Always true


2

If your list/library has multiple content types associated with it, the drop down will appear. If there are other content types that are not being used, remove them from the list and they'll go away. Otherwise, you'll need some script or css to remove/hide it.


1

The changes can be made in site definition files. If the site created by you is using custom site template(You have created template) you can set it in the onet.xml file of the Site definition. In the onet.xml, refer the module in the configuration and define the module int he following way <Modules> <Module Name="Default" ...


1

Since you have edited the page layout it de links from the content database, in order to roll back you have to use "Reset to Site definition" on ECB context menu of the layout. This is roll back your changes and it refers from the content database.


1

This message will show when we edit the properties of a page no matter which library / wikis we upload it to, it seems to be by design. If you have any webpart on the page, once you click on it, it will give you control to perform maintenance on the webpart i.e. Close, Reset. Delete etc. To remove that i think you need to Customized the EditForm.aspx.


1

Once I had the same issue with my SharePoint 2013 sub site. So I had to set the theme again, that way it helped me. I know it is weird issue but saved my day. You should try that too. The only thing problematic here is the theme CSS file. Don't know why that CSS file is not being found. Hope this helps!


1

You can update the associated content type by this indirect route. Suppose you have a content type name $contentTypeName, a web $web, and the list item of your page layout, $item. $item.Properties["PublishingAssociatedContentType"] = ";#" + $contentTypeName + ";#" + $web.AvailableContentTypes[$contentTypeName].Id.ToString() + ";#" $item.Update() ...



Only top voted, non community-wiki answers of a minimum length are eligible