Hi Nigel, Thanks for that but I'm wanting to rebuild all the old (declarative XML) content types programmatically as part of a feature receiver.
I'm sick of dealing with CT update and upgrade issues when deployed via XML. And MS have finally decided to push the programmatic approach we always knew was better. :) Unfortunately there's not a lot of good documentation and various approaches that can be used. Regards, Paul From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Nigel Witherdin Sent: Tuesday, 14 October 2014 11:25 AM To: OzMoss Subject: RE: Creating site content types and columns programmatically Hey Paul, Attached are some examples. - The loose 'Elements.xml' is our core content types - what all the other ct's derive from. - Bank Guarantees has examples of CT's for document sets and documents, using a variety of fields including Managed Metadata. - Brandspace has a variety of CTs including docs, doc sets, images, and assets - NSO Images demos doc set and image CT's - Elements-2.xml has examples of using a document template - look at line 595 - the next 4 content types declare a document template Cheers, Nigel ________________________________ From: p.no...@keller.com.au<mailto:p.no...@keller.com.au> To: ozmoss@ozmoss.com<mailto:ozmoss@ozmoss.com> Subject: Creating site content types and columns programmatically Date: Mon, 13 Oct 2014 03:53:49 +0000 I want to rebuild a few declarative ones but can't find any comprehensive examples that provide the functionality in my XML. Can anyone provide any complex examples or documentation that include provisioning a document template, and field removal and ordering? Regards, Paul The content of this email is confidential to the intended recipient at the email address to which it has been addressed. It may not be disclosed to, or used by, anyone other than this addressee, nor may it be copied in any way. If received in error, please contact the author and then delete the message from your system. Please note that neither Keller Australia nor the sender accepts any responsibility for viruses and it is your responsibility to scan the email and attachments (if any). Visit http://www.keller.com.au/ for more information. ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ _______________________________________________ Sponsored by Infotext - Amazing Search for Microsoft SharePoint - http://www.infotext.com/ ozmoss mailing list ozmoss@ozmoss.com<mailto:ozmoss@ozmoss.com> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss The content of this email is confidential to the intended recipient at the email address to which it has been addressed. It may not be disclosed to, or used by, anyone other than this addressee, nor may it be copied in any way. If received in error, please contact the author and then delete the message from your system. Please note that neither Keller Australia nor the sender accepts any responsibility for viruses and it is your responsibility to scan the email and attachments (if any). Visit http://www.keller.com.au/ for more information. -------------------------------------------------------------------------------- This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal --------------------------------------------------------------------------------
_______________________________________________ Sponsored by Infotext - Amazing Search for Microsoft SharePoint - http://www.infotext.com/ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss