Update content type template for existing sites in sharepoint 2010 ?

Hi,
I created one custom document library (list definition) and associated 3 content types which has docment template path (\_layouts.template1.docx). I rollout nearly 200 sites with this definition. now i want to update my document template and also i want
to change template docx to dotx.
what is the best approach to apply these changes for existing sites ?
Thanks,
Surya.
suryakumarp

Hi suryakumar,
As I understand, you want to update the template 
for existed content type.
It can be achieved by programming. There is a
SPContentType.DocumentTemplateUrl Property, which can be used to update content type.
Here is a demo:
http://officepoint.blogspot.com/2008/06/sharepoint-relink-infopath-forms-relink.html

Similar Messages

  • Missing "Save Site as Template" For Publishing Sites in Project online 2013

    First I created Sub site using Project Template under the site collection.
    Now I want to this Sub site Save as a Site Template. When I went for Save site as Template in site setting. Under Site Action there is no option for “Save site as Template”
    marylu

    "Publishing Feature" may be enabled at your site , The Publishing feature does not support the Save Site as Template option.
    http://support.microsoft.com/kb/2492356
    Some workaround -
    http://www.learningsharepoint.com/2013/05/03/missing-save-site-as-template-for-publishing-sites-in-sharepoint-2013/
    http://blogs.msdn.com/b/how24/archive/2013/06/13/save-publishing-site-as-a-template.aspx
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Update content type definition in sandboxed solution

    In my web application I am using a content type hub. The content type hub contains a sandboxed solution which contains several content type and column definitions like this:
    <ContentType>
    <FieldRefs>
    <FieldRef ID="" Name="" />
    </FieldRefs>
    </ContentType>
    <Field ID="" Name="" />
    Now I need to update a content type definition by adding a new column. In my content type definition in Visual Studio I added the field refence to the column and build a new WSP.
    I am updating the sandboxed solution with PowerShell. First I add the new solution:
    Add-SPUserSolution -Site $url -LiteralPath $newSolutionFile
    Then I update the old solution with the new:
    Update-SPUserSolution -Identity $oldSolutionName -Site $url -ToSolution $newSolutionName
    The old solution is deactivated and the new solution is activated, so the update did go well. But when I go to see the content type, it's not updated. The newly added column did not get added.
    When I manually deactivate the newly added sandboxed solution and activate it straight away the content type does get updated. So it looks like the Update-SPUserSolution command does not update the content type and column definitions.
    Does anyone has experience with updating content types with the Update-SPUserSolution command?

    Hi,
    Please check the link below.
    http://msdn.microsoft.com/en-in/library/ff798382.aspx.
     you can use the Update-SPUserSolution command
    in Windows PowerShell to upgrade your solutions. However, this requires access to the server environment, which is not necessarily available to sandboxed solution developers or site collection administrators.
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • A content type failed to be syndicated: Microsoft.SharePoint.SPContentTypeReadOnlyException

    I've got a content type hub in my SharePoint 2010 environment. I've updated a content type on the hub and now when the timer job for the content type hub runs I'm getting a lot of messages like this one:
    A content type failed to be syndicated: Microsoft.SharePoint.SPContentTypeReadOnlyException: The content type "Site Request"
    at "/sites/sitename" is read only.   
    at Microsoft.SharePoint.SPContentType.Update(Boolean updateChildren, Boolean ignoreSealedOrReadOnly, Boolean throwOnSealedOrReadOnly, IList`1 exceptions)   
    at Microsoft.SharePoint.SPContentType.Update()   
    at Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.SubscriberImport.UnshareContentType(SPContentType contentType, Boolean previousReadOnlyValue)   
    at Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.SubscriberImport.UnshareContentType(String contentTypeIdString)   
    at Microsoft.SharePoint.Taxonomy.ContentTypeSync.Internal.Subscriber.SynchronizeSite(TaxonomySession session, TermStore termStore, MetadataWebServiceApplicationProxy proxy, SPSite site, Guid rawPartitionId, DownloadedHubData downloadedHubData, SyndicationResult
    result, SiteStatus& siteStatus)
    There haven't been any updates made to the content types for quite a while. So this issue might have occurred since the latest SharePoint updates were installed.
    To me it sounds like this could be a permission issue but I can't see an issue with the permissions.

    Hi Pieter,
    Thanks for the sharing the information.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Create a mobile site in SharePoint 2010

    Hi,
    We have an Intranet publishing site in SharePoint 2010. 
    Currently we have shut off the mobile redirection, and let users interact with the full site on their mobile device.
    The new requirement is to extend this for mobiles without using the above approach. I found that using responsive grid we can modify the page layouts to be responsive. Hence thought of creating a seperate site collection with different pagelayouts.
    But this would mean recreating all the page layouts and content for new site collection. Also there would be some webparts which will have to display display data from different site collection.
    Can anyone please suggest a best approach for this issue.

    Follow these steps
    1) You can add a feature in your Project
    2) Open the feature and set scope to SITE, and give a feature title
    3) add your web part into this feature
    4) Now you can deploy the wsp in your destination site
    5) Once deployed, browse the site and go to site setting, site collection features, you will see your feature name here, you can active it
    6) Once activated, now you will be able to add your webpart on any web part or publishing page
    To ensure your webpart is installed, you can go to site settings -> web part gallary -> and see your webpart definition file should be available here
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • How to check the user hits to the sites (most often,frequently used sites) in sharepoint 2010?

    HI,
    How to check the user hits to the sites (most often,frequently used sites) in sharepoint 2010?
    could you please help on the above?

    Hello Sudhir muvva,
    Just to be sure, the default Web Analytics reports don't meet your requirements?
    http://blogs.msdn.com/b/ecm/archive/2010/03/21/introducing-web-analytics-in-sharepoint-2010.aspx
    Does reports have subjects like top pages and number of page views.
    - Dennis | Netherlands | Blog |
    Twitter

  • How to get Privacy Policy value for each userprofile in sharepoint 2010?

    In userprofile application, we have defined Privacy Policy of mobilephone feild as optional, so every user has option to choose visibility scope of this property to "Everyone/My Manager/my colegues/Only Me" .
    Now I am trying to get mobilephone value and their selected visibility option for each user.
    I am able to get mobilephone value but I could not get "what each user has chosen as their visibility scope"?

    Hi,
    According to your post, my understanding is that you want to get Privacy Policy value for each userprofile in sharepoint 2010.
    You need to use RunWithElevatedPrivileges method to impersonate user.
    To get the get mobilephone policy, you can use user["CellPhone "].Privacy.
    For more information, you can refer to:
    c# - Getting property privacy with Sharepoint 2010
    How to Programmatically Impersonate Users in SharePoint
    Managing Sharepoint 2010 Profiles Programmatically
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Updating Content Type Failed

    I'm fairly new to Sharepoint and Infopath.  I hope someone here can help me.   
    I have a large Infopath form with ~90 fields on it.  When I try to publich to the server, I get "Updating [or Creating] Content Type Failed".
    I determined this to be due to the number of fields and some sort of time out issue with Infopath.  I have seen a few other posts on that and the only solution I've seen is to publish with fewer fields - that does indeed work, but it doesn't solve my problem as I need all of these fields.  
    I've also seen a solution to publish with fewer fileds successfully and then republish with all you need and that the "Failed" message won't matter.  Kinda true, but then I have an issue with it no longer opening in browser.
    So then, I tried publishing it to my desktop and uploading it through Central Admin, activating it to a site collection, and using it that way.  That actually works the best so far, but then I get no option to select my Parent Content Type - it just picks "Form" - and that also doesn't work for me.  I need to select Parent Content Type
    Then, I tried to Create a new CT from scratch and point it to the form template I recently uploaded.  I get to pick my parent and all, but none of the promoted properties are there, so they don't show up in my workflow, and that's the end of that route.
    Now, I am out of ideas (but you can't say I didn't try)
    Anyone out there have any suggestions that could help me?
    Thanks

    We were running into a similar issue where ~90% of the time the publication of a complex InfoPath form would fail. It looks like a timeout issue with the webservice, but it's hard to say. We came up with a different approach that seems to have solved the problem for us. I just posted details on my blog (http://acuffgroup.com/2009/01/21/tip-for-publishing-infopath-form-to-sharepoint-library/) but the summary is: don't have InfoPath re-create the columns on each publish event. Rather have it connect to existing columns, which you can specify in the publishing wizard. This change fixed our issue and looks like it's going to save us a lot of time moving forward. Check out the post and leave a comment if this helps, or if you've got other insights you can add.

  • Integrate Tribevita template into existing site

    Hi all
    I am going through the pleasure of integrating a new Tribevita template into an existing site ie so the crucial sales data etc is maintained. From my research, this is a bit of work and basically it seems you are copying various parts of the new template into the current (old) site.
    I gather the process of integrating a new site involves:
    1. Recreate the folders, web app layouts, forms, content holders, photo galleries etc from the new template, into your existing site.
    2. Change the relevant ID's in the html in the new site, so they match the ID's of those just created in step 1
    3. Then.... ftp all the new template's pages, assets, css, files etc into the OLD site....and in theory you will have your new & improved website all while maintaining all that traffic and sales data.
    The new template site is a reponsive site from Tribevita - Flora Design, so I don't know if that will have any issues moving across to the old site.  Has anyone gone through this process and can you give me any advice on things to look out for and if the above the correct method to do this changeover.
    Many thanks.
    David  

    Hi Buzzvick - glad you messaged me as I've been meaning to let you know but couldn't find this thread.
    OK it did go smoothly but here's what I learnt.
    First make sure the template you bought is almost EXACTLY what you want. Ie products display the same as you want them to, search pages etc work how you want to. Find one that you would be happy to use as is just with minor changes like colours.
    Create your template on a test site. Write down your login details as you will refer to it often. FTP copy this new site.
    FTP copy your new site again and save it as a working file (e.g NEW SITE - Working file)
    Create all logos and banners in the sizes you will need for new template.
    FTP copy your old site - save it as ORIGINAL SITE and lock it in your files.
    FTP copy you old site again and save it as working - use this to compare the files for when you upload the new template
    FTP copy your old site once again and save it somewhere else just in case you need it!
    copy your products and customers for backup
    do a sync if you are using onesaas etc
    I also printed all invoices from start of BC / made sure I had a foolproof backup
    Create a new start page and say you are doing updates (if you are tackling it all in one day)
    (I was recommended to check duplicate scripts, css, images, templates etc but I realised this would take hours / days so skipped it and bit the bullet - If i had more time I would have but as I was prepared for our site (=my site) to be offline and have customers call if problems I jumped right in).
    FTP across the template to your website - I used the 'working' file and deleted files on my computer once I had uploaded them so I new what was still to be done.
    Update the template and page module numbers etc (I used a script from BC Gurus that showed the module ID numbers next to it - message me if you need it).
    Screenshot the NEW template (on test site) and also OLD template ID numbers (using script above) and print it out - this will save hours as easy to cross compare.
    If the menus don't show - which ours weren't - RECREATE them... this took me 2 hours to work out why they weren't showing as I just duplicated them and it didn't work!!
    Now change over page templates - start with unpopular pages like about us etc
    Using firebug fix up any styling etc and update css.
    I also removed / delete all my old styling sheets and just kept the new template one (hence your site might look a bit fuzzy so make sure you do it on a crappy sales day or with the maintenance page loaded)
    - I used FTP with my new template file in one screen and current site in the other screen and deleted anything that wasn't in the new template (make sure your original site backup is on file).
    Check all categories, pages etc - e.g update home page etc
    Check ipad / iphone versions (I use firefox web tools that resizes screen as our new site is responsive)
    Make site live (remove maintenance page)
    Pretend you are a customer and sign up for your newsletter, sign up for access / do an order. TEst it all.
    Add in all Google analytics and trackings.
    Update your SEO info e.g title tags - I went page by page through my old site templates and copied any SEO or scripts I'd need and saved it in word
    Recheck site again - Pretend you are a customer and sign up for your newsletter, sign up for access / do an order. Test it all again.
    Recheck site again from other browsers - Pretend you are a customer and sign up for your newsletter, sign up for access / do an order. TEst it all.
    I also kept a notepad handy and highlighted all the above once done. I also wrote down anything little that needed to be changed and kept going on the above. If you start fixing little things as you go you will never finish. I employed my 90% principle - get 90% done then do the remaining little 10% once 90% is up.
    And good luck! It took me from 8am Saturday morning to 5.30am the Sunday morning - so almost a good 24hours! Luckily I'd had a super early Friday night (no life that weekend!) and did it from my home office. So I'd recommend only conquering it when you can pull an all nighter so the site is done.
    Hope that helps

  • How to update content types enheriting from the System Page Content type

    After importing a design package I found out that my content types was missing some columns. I could add the missing columns to my "page" and "Article Page" site content type. When adding the exisiting columns I could choose to update
    everything that inherits from this type:
    This is working. However I still miss 2 columns in the "Page" Content type:
    1. Rollup Image
    2. Hide physical URLs from search
    If I roll back my dev environment I can see that these are inherited from the "System Page" content type which is not editable. The columns are in the "System Page" content type but They are gone in "Page" content type that
    should inherit the columns.
    So how do I update these?
    Thanks

    Hi Alex,
    Thank you for replying. I totally agree with you regarding not to modify the OOB content types. The content types I have created/modified is also my own "new" content types.
    However the designpackage import messed up the OOB content types somehow so I'm only trying to get back to the state before the import. The only thing I see is still missing is the two previously mentioned columns in the "page" content type.
    Do you have any other suggestions in how to get back to the "OOB State"?
    Thank you
    Update: this is my page content type. It's not set to read only so it should update the last two missing columns from its parent (system page content type) right?

  • Content type problem for 'does not appear to be a proper arcive'

    Hi all,
    The following code will create a ZipOutputStream using ByteArrayOutputStream (not FileOutputStream) and attach the outputstream to a MIME multipart email using ByteArrayDataSource (so the file never exists physically).
    It works and sends the email but the zip 'does not appear to be a valid archive' even though it looks about the right size. If I do the same and use FileOutputStream to create a physical file it works OK. I think it is an issue with the content type, or maybe this just isn't possible!
    I have tried:
    byteArray.toByteArray(),
    byteArray.toString().getBytes() and application/zip & application/unknown.
    Can anyone help or suggest an alternative way to create a 'in-memory' zip file that can then be emailed?
    Many thanks
        // Specify files to be zipped
                                                                 String[] filesToZip = new String[3];
                                                                 filesToZip[0] = "C:\\Program Files\\NetBeans3.6\\firstfile.txt";
                                                                 filesToZip[1] = "C:\\Program Files\\NetBeans3.6\\secondfile.txt";
                                                                 filesToZip[2] = "C:\\Program Files\\NetBeans3.6\\thirdfile.txt";
                                                                 byte[] buffer = new byte[18024];
                                                                 // Specify zip file name
                                                                  String zipFileName= eq_rt.getReportName() + ".zip";
                                                                 try {
                                                                   // Create ZipOutputStream to store the FileOutputStream
                                                                   //ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFileName));
                                                                   ByteArrayOutputStream byteArray = new ByteArrayOutputStream();                                                             
                                                                   ZipOutputStream out = new ZipOutputStream(byteArray);                                                              
                                                                   // Set the compression ratio
                                                                   out.setLevel(Deflater.DEFAULT_COMPRESSION);
                                                                   // iterate through the array of files, adding each to the zip file
                                                                   for (int a = 0; a < filesToZip.length; a++) {
                                                                     System.out.println(a);
    //                                                                 // Associate a file input stream for the current file
                                                                     FileInputStream in = new FileInputStream(filesToZip[a]);
                                                                     // This ROCKS as it is passing a array into the text file .getBytes() seems
                                                                     // to be the KEY in getting ByteArrayInputStream to WORK
                                                                     String strSocketInput = "TAIWAN";
                                                                     ByteArrayInputStream baIn = new ByteArrayInputStream(strSocketInput.getBytes());
                                                                     //ByteArrayInputStream baIn = new ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc() ) );                                                               
                                                                     // Add ZIP entry to output stream.
                                                                     out.putNextEntry(new ZipEntry(filesToZip[a]));
                                                                     // Transfer bytes from the current file to the ZIP file
                                                                     int len;
                                                                     while ((len = baIn.read(buffer)) > 0)
                                                                     out.write(buffer, 0, len);
                                                                     // Close the current entry
                                                                     out.closeEntry();
                                                                     // Close the current file input stream
                                                                     baIn.close();                                                   
                                                                  // DataSource sourcezip = new FileDataSource(zipFileName);
                                                                   //DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/octet-stream");   
                                                                    DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/octet-stream" );
                                                                   // Create a new MIME bodypart
                                                                   BodyPart attachment = new MimeBodyPart();
                                                                   attachment.setDataHandler(new DataHandler(sourcezip));
                                                                   attachment.setFileName(zipFileName);                       
                                                                   /* attach the attachemnts to the mail */
                                                                   multipart.addBodyPart(attachment);                                                                
                                                                   // Close the ZipOutPutStream
                                                                   out.close(); 

    Many thanks Dr Clap. Moving the Closing the ZipOutputStream before I attached it to the email solved my problem.
                                          /* Close the ZipOutPutStream (very important to close the zip before you attach it to the email) Thanks DrClap */
                                                                    out.close();                                                    
                                                                    /* Create a datasource for email attachment */
                                                                    // DataSource sourcezip = new FileDataSource(zipFileName);
                                                                    DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/zip" );
                                                                    /* Create a new MIME bodypart */
                                                                    BodyPart attachment = new MimeBodyPart();
                                                                    attachment.setDataHandler(new DataHandler(sourcezip));
                                                                    attachment.setFileName(zipFileName);                       
                                                                    /* attach the attachemnts to the mail */
                                                                    multipart.addBodyPart(attachment);  

  • Updating Content Type from other metadata field

    Hi.
    In the process of creation of metadata fields a customer use a custom metadata field called 'class' to define what type the content are. The field Content Type was leave untouchble. Now they have tons of content in the same folder inside vault cause content server uses the metadata content type to create vault subfolders. What is the best way to eliminate the field class, transporting the metadata to the correct field content type and mantain the correlation of the links to the native files and weblayout files of the content? If I just update the column content type with the data in column class I believe that willl be a mess of broken links. Can anyone suggest anything?
    Thank you!

    Hi there,
    Thought i could not comprehend all that you want, I could get that you have problem with a meta data filed.
    Instead of using "Content Type" earlier contributors used "class" and now you want to chagne the "class" field with appropriate value of "Content Type".
    This can be done provided the original "class" type was used intellegently by using following steps
    1) depending on various values of class(e.g. all document for which class=A) created exports using archiver, also deleted them same time.
    2) Import the archiver created in step one and prove an input map for the "class" field to appropriate value as "Content Type"(content type =B)
    In this way all content items with class=A would be converted into content type=B.
    Hope that helps you.
    regards,
    sapan

  • IWeb makeover for existing site?

    i apologize for so many post! i could have combined my last two i suppose.
    i have an existing site that is basically just one page of lots of text with loads of supporting documents --scans both jpg and pdf-- all of which are linked in the js openwindow fashion in each link.
    is there any way to import this into iWeb for an iWeb makeover?
    thanks always
    Message was edited by: Ted Rogers3
    in fact, how do i put in links that are of the type:
    i need this type of link because my site is like a book with supporting docs and by using this method the reader can simply close the linked document window and be 'where they were' to continue reading.

    i apologize for so many post! i could have combined
    my last two i suppose.
    That's okay...we don't mind. Just ask away!
    in fact, how do i put in links that are of the type:
    You won't be able to do this in iWeb. There is no problem linking the files in iWeb, but in order to apply the javascript popup window code or otherwise have your links open in new windows, you will have to edit the HTML code that iWeb generates for your particular pages.

  • What are the drawbacks to adding a Site Content Type to the Document Site Column?

    I have a client who has enough SharePoint knowledge to be dangerous.
    They are requesting that a Column be added to all Document Libraries everywhere.  We built a solution that would require a bit of work when a Site Collection is created, and it would require that we run a script to identify if there are any Libraries
    that do not have this Column attached.
    This client wants to know why we didn't just add this Column to the default Document Site Content Type.  I don't know specifics as to why that's not a good idea, just that it's not a good idea.
    Can anyone point me to a resource that identifies the reasons why this is not recommended?
    Thank you

    I'd say there's a risk that patches or upgrades could be affected by this, or overwrite the change.
    In the past I've derived a Company specific Document Content Type from the Base Document CT, and added any new company wide columns to that new CT.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • Update content type in list not working

    My list content type is not getting updated.
    I have a content type defined in a feature. I have created a new column and updated the feature definition and reactivated the feature.  I have also written powershell to check and update the content type with the new column.  The content type
    gets updated but not at the list level.  The powershell looks like this:
    Function UpdateContentType($contentType, $fieldLink)
    if ($contentType.FieldLinks[$fieldLink.Name] -eq $null)
    Write-Host Adding Field to content type
    $contentType.FieldLinks.Add($fieldLink)
    $contentType.Update($true)
    I thought the Update method was supposed to push the changes down, but it doesn't seem to be working.  This code does work in a different environment so I'm not what is going on.
    Caroline

    You will need to updated the list also, after updating the content type
    This is sample code how you update list which is using the Content Type.
    IList<SPContentTypeUsage> usage = SPContentTypeUsage.GetUsages(newsCT);
    foreach (SPContentTypeUsage item in usage)
    if (item.IsUrlToList)
    SPList list = rootWeb.GetList(item.Url);
    if (!list.Fields.ContainsField(firstName.InternalName))
    list.Fields.Add(firstName);
    list.Update();
    more information you can check at this link
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

Maybe you are looking for

  • Can i install samsung 850 pro 1 tb solid state drive in my "macbook pro 2012 mid".

    Hi, anyone know. can i install samsung 850 pro 1 tb solid state drive in my "macbook pro 2012 mid". any compatibility issues?

  • Acrobat 7.0 convert printing multiple bookmarks as odd pages

    Hi all, A common problem I've been having is being sent .pdf's with bookmarks, and only one page; the rest bookmarks. How can I print them as 'odd pages' then print as 'even pages' so I'm not wasting lots of paper. Also too time consuming to print on

  • No new editor for Text elements in Smart forms

    Hello all, I've a problem on SAP demo system (version 7.2). When I add new Text element on window then on tab General Attributes I'm only able to see ComboBoxes for "Text Type", "Start", button pencil (for going into fullscreen old editor) and button

  • Dreamweaver CC Hangs/Freezes in Win 8/64 Bit

    All right, this is really, really annoying now... Installed CC, haven't changed anything in it, pretty much default/stock install, and if I go to open certain files (.php mostly) it first takes about 10-20 seconds to load the file (even though there'

  • V570 can not see wireless n connection

    Hello, I just bought a V570 5 days ago and noticed that the wireless adapter does not find my 802.11n signal but only the 802.11g signal.  While the 2.4 GHz connection is ok, I expected to be able to connect to the faster network.  I've tried to set