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

Forums / Developing with Sitefinity / Exporting single pages

Exporting single pages

3 posts, 0 answered
  1. Chris
    Chris avatar
    87 posts
    Registered:
    11 May 2010
    20 Oct 2010
    Link to this post
    I am looking at exporting single pages in order to provide export/import page functionality between development and production environments.

    I am looking at how the Export method of Telerik.Cms.Data.DefaultProvider works but was wondering if there was anything anywhere for exporting just a single page e.g. Export(pageId), or do I just need to write this from scratch?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Oct 2010
    Link to this post
    Hi Chris,

    You have to use the pages API - Working with Pages Programmatically and export all data to a XML ( or using another format). Then read the data from the XML and create your pages.
    Since Sitefinity 3.7 SP3 we support multiple providers for CmsManager, so you can create the page in one provider and then move the page to the another provider which you will use on the production server. In this case you do not need to create XML file to persist the data. Generally you should better use database replication tool like RedGate.

    Regards,
    Ivan Dimitrov
    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
  3. Chris
    Chris avatar
    87 posts
    Registered:
    11 May 2010
    20 Oct 2010
    Link to this post
    I think the issue with us is that we really only want to pick and choose which content to migrate. I don't really understand what you said about multiple providers for CmsManager I'm afraid, could you try and explain if you still think it is relevant?
Register for webinar
3 posts, 0 answered