Tag Info

New answers tagged

0

You basically have to create a custom SPWebEventReceiver and activate your mandatory feature under "WebProvisioned" method, like this: public class YourWebEventReceiver : SPWebEventReceiver{ public override void WebProvisioned(SPWebEventProperties properties) { base.WebProvisioned(properties); // Activate your mandatory feature here ...


0

The contenttype ID you have in your XML is (trimmed for brevity) [...]26CD44D07. That references that it is a child of [...]26CD44D. If that content type does not exist on the site you're trying to load it to, it will fail.


0

The issue with your code is, that in a list content types are not added directly but only as a child of the web content type. This means, that no content type on a list will ever have the ID 0x01. It is always better to use the SPBuiltInContentTypeId to refer to an out of the box content type, because the name change with the language SharePoint is ...


-1

If javascript/jquery code is alright with you, here is an excellent solution for displaying ContentType dropdown in NewForm.aspx http://www.wikiguga.com/topic/a5c9426f67e9fdce862f1c0cd30e3f3f


1

I think you are almost there except that you have used assignment operator which will always return TRUE. Instead you have to use comparison '==' or '===' operators. update in below line EnabledScript="javascript:SP.ListOperation.Selection.getSelectedItems().length === 1;"


0

After some research time I found the way to show that little dropdown :) You have to include in your custom form this: <SharePoint:ChangeContentType runat="server" id="ContentType_" ControlMode="Edit"/> In order to be able to select the content type you want for your item


0

I would first check the content type definitions through the list settings to ensure that they have the correctly assigned columns for each content type. Are content type B and C children of content type A?


-1

Go to List Settings -> Advanced Settings -> Allow management of content types? Set this to No.


0

I had the same problem and i resolve them as following : Comment out the block of "XmlDocuments" , Set the content type of the liste and when you looking on the Schema.xml file of the list after setting the Content type you find the same line commented. So i uncomment them from the Schema.xml and from the content type and i deploy and it work fine.


0

I would recommend something like this. I know you said your not great with JavaScript, but I think this is going to be your best option. I have found from personal experience that InfoPath is easy to start with, and powerful to an extent, but you will soon find its limitations and flaws. If/when that happens you will be going back and starting fresh with ...


0

Check your error log at site collection settings -> content type publishing -> Content Type Publishing Error Log. Chances are you changed a column in the hub and the consuming site is giving an error that it already has a column with that name.


0

This turned out to be a permission issue. I tried wrapping the code to publish the content type within SPSecurity.RunWithElevatedPrivileges and it worked. Also, do remember to use a new SPSite instance within this delegate, instead of using it from the context.


0

This issue has been resolved in our environment. In parallel we were implementing a content type hub for the first time in this farm. The CT Hub was implemented and a full crawl then executed. All content types (custom and oob) are now available as refiners and as fetched items in the object search results. We did not have to republish any content types but ...


1

It has been a while since I did this. I agree with taking out the $Resource part. And yes Formulas use DisplayName as references, I have never used the ID in the FieldRefs And try it with an existing field first <Field> ... <Formula>=Title</Formula> <FieldRefs> <FieldRef Name="Title" /> </FieldRefs> </Field> ...


1

First, I would remove the "$Resources" part in the Display Name of your definitions (if you don't use resource files). Check this question : How can I provision a list with a calculated field? (there is a comment saying that InternalNames are required, and there is this link http://www.hekstra.org/how-to-deploy-a-calculated-field/ saying that Site Column = ...



Top 50 recent answers are included