+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / migrating content

migrating content

8 posts, 0 answered
  1. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    19 May 2009
    Link to this post
    Is there any built-in way, or available tool to migrate content from one Sitefinity installation to another?  My client entered a large quantity of content on our staging server *after* the site was published to the production server.  The content in question is in a number of modules based on the Generic Content module (basically just different provider names for the GC module).  There is a significant amount of metadata associated with each content item that would need to be preserved and migrated with the content.

    Obviously I can write some code to do this...but something out of the box would be ideal.

    Thanks in advance,
    Mike Sharp
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    19 May 2009
    Link to this post
    Hello Mike,

    Thank you for using our services.

    Apart from coding there is a built in exporter tool under Administration >> Tools >> Export. It will export all data from pages in the Pages, data from the following modules: Generic Content, News, Lists, Blogs.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    19 May 2009
    Link to this post
    Thanks Ivan!

    How would I use the exported file to import into an existing site?  My goal is to ultimately only import the data from the Generic Content module, but importing all data would be ok, I guess.

    Regards,
    Mike Sharp
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 May 2009
    Link to this post
    Hello Mike,

    For exporting and importing Sitefinity websites as template check out our User Manual Exporting Web Sites as Templates section.

    Actually there is a way to get the items only for generic content module.

    Here are some ways.

    1.  After you have exported a website it will be added to ~/App_Data/Sitefinity_Exports/[ExportedSiteName]
    Inside this file there is an archive project.zip. After you have unzip it you will see the basic project directories. In this project ~/App_Data/Sitefinity_DataImport/[ExportedSiteName] there is a file - generic_content.xml which collects all exported data from the old website. So, you can edit this file and left only generic content module items or use it for parcing.

    2. Create an empty project.
    - Does not create any content, pages etc.
    - add additional connection string to your current database (OldDb).
    - add the connection string to <dataAccess> node

    <add name="GenericContentCustomConnection" driver="Telerik.Cms.Engine.Data.Providers.GCSql2005Provider, Telerik.Cms.Engine.Data" 
    connectionStringName="OldDb" /> 

    - point the GC provider to the old db connection string

    <add name="Generic_Content" urlRewriteFormat="[Publication_Date]/[Name].aspx" urlDateTimeFormat="yy-MM-dd" 
    urlWhitespaceChar="_" 
    visible="True" defaultMetaField="Name" 
    securityProviderName="" allowLocalization="False" allowVersioning="True" 
    allowWorkflow="False" 
    allowComments="false" 
    commentsModeration="true" 
    versioningProviderName="" 
    connectionStringName="GenericContentCustomConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data"/> 

    Export this project using the tool an import it on a new Blank project.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    20 May 2009
    Link to this post
    Oh, method number two looks like a great idea!  Thanks!

    Mike
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    21 May 2009
    Link to this post
    Hi Mike,

    It will be more easy and faster that other ways that can be used for content migration. Let us know if there is anything else that we can do for you.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Chris Dodge
    Chris Dodge avatar
    16 posts
    Registered:
    17 Dec 2009
    31 Jul 2010
    Link to this post
    Hello,

    I came up on this posting as I'm looking to export Blog and NewItems between Sitefinity projects.

    After exporting the source project, how could I import the NewsItems and Blog Posts into the new project?

    Thank you,

    Chris
  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Aug 2010
    Link to this post
    Hello Chris Dodge,

    If you are going to use the Export Tool functionality you can take the produced export zip file and go to your Sitefinity installation directory and add the the exported site as a template in ProjectManager -> Templates directory. You can alternatively use the method described in this blog post.

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
8 posts, 0 answered