I want to export contribution and event pages from one Drupal7 site to another Drupal7 site.
Is this doable, any help greatly appreciated.
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.Sign up to join this community
It should be possible (but I've not tried it ...) using the API for Event and ContributionPage:
civicrm_api3('Event', 'get', ...) to get them from one system and
civicrm_api3('Event', 'create', ...) on the other.
Take a look at the API explorer on your system (Support >> Developer >> API explorer).
Unless you have loads of them, it might be just as quick doing it manually!
It sort of depends on what you mean by eg 'event page'; do you mean also taking over all the information to create the location, the price set, the Profiles etc, or actually just the info in a row of civicrm_event.
If the latter then you can check what you can grab and insert via sql (eg if you have something like Sequel Pro, you can click on a row in the table, the right click and "Copy as SQL insert" and then at the other end, just paste as a query.