New answers tagged

1

The content type object is not loaded. So you need another round trip to the server to get the details as below function SuccessHandler(result) { var newshtml = ''; listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { oListItem = listItemEnumerator.get_current(); var CT = oListItem....


1

If you created the multiple columns at the list level, you will need to add the new content type to the list first, and then add the columns to the third content type. That's why it is a good practice to always create columns and content types at the site level. (Site Settings -> Site Columns or Site Settings -> Site Content Types). That way, any columns ...


0

Write-Host -f Green "Adding Content Type to Document set: DocumentsetName" Add-SPOContentTypeToDocumentSet -DocumentSet "DocumentsetName" -ContentType "picture" Use SharePoint Online PnP https://github.com/OfficeDev/PnP


1

Using PowerShell create a backup of existing site collection. Restore it as a new Site Collection. Write PowerShell script to iterate through the sub sites and delete all except the template site. Now take a backup of the new site collection so you can use it in future as a template.


1

Been advised on other sites to use Content Types (CT's) wherever possible, InfoPath form editing is great but the power is from the CT's and they will be retained moving forward.


1

Yes, through PowerShell. Phil Childs posted the article Export and import/create site columns in SharePoint using PowerShell back in 2011. Basically you export your site columns to an XML-file in your test environment, and import the XML to production. Export: $sourceWeb = Get-SPWeb http://portal $xmlFilePath = "C:\Install\Script-SiteColumns.xml" #Create ...


0

the FieldName is a name of ref to field you can set differant id for Every one of them, (id attribute is only for you)


0

One of the things wrong with your script is: if($ll.Title -eq $ctName) That means you are checking if the list title is the same as the name of a content type. I don't think that's what you want to check. You can also try using this script from Technet Gallery (aren't you using it already, just forgot to mention the source?) or Remove-SPOContentType ...


0

Since you tagged the question with javascript, I'll give you a Javascript answer. Theoretically you could do this through Client Side Rendering. You would need to create a script for each content type, and attach it to the content type through the content type's JSLink property. Then of course, in each script, you would set the field's value to the ...


0

No you can't do that because this will defy the purpose of Site Columns which are intend to be global in nature. Workaround is to set the default value after adding the content type to a list.


0

I believe the equivalent of SPContentTypeUsage is not available in Client. Hence we can't use PowerShell to scan and report the Usage. I strongly recommend you check the recycle bin to make sure the reference is holding in there Delete from site recycle bin Delete from Site Collection > Site Settings > Site Collection Administration > Recycle Bin Delete ...


0

We can edit these files. I could reach to these files by using SharePoint Designer. File-> Pages ->Open (on the right pane)->Lists. When a list is opened, we can see the custom forms for the content types and from there we can open these files.


0

I've been researching this for 2 days. Apparently there is no way on how to assign a SharePoint 2013 workflow to a Content Type. MSDN says: “Unlike previous versions, SharePoint 2013 does not support workflows that are scoped to a content type (SPContentType). However, the messaging infrastructure is extensible, so it can support any arbitrary scope. As a ...



Top 50 recent answers are included