Categories

Featured templates

Drupal 7.x. How to install sample data

Ryan DeWitt April 18, 2014
Rating: 5.0/5. From 2 votes.
Please wait...

This tutorial shows how to install Drupal 7.x templates sample data.

Drupal 7.x. How to install sample data

  1. We have activated the theme and uploaded all modules and other files that come with the template package. Make sure that you have followed all the steps from this tutorial: Drupal 7.x. How to install theme. You can find the tutorial in our Help Center.

  2. Log into the admin section, open the "Configuration -> File system" page, set "Private file system path" to "sites/default/private/files".

    [SCM]actwin,0,0,0,0;

  3. Go to Modules and enable the "Demonstration site" module. Scroll down and save changes.

    Drupal 7.x._How_to_install_sample_data-2

  4. Go to the "Structure -> Snapshots" page, select the "themeXXX" snapshot and click the "Reset" button. Please note that all content will be replaced with sample content. The snapshot may not show up in these cases: you have not uploaded all template files, incorrect permissions are set for the “sites/default/private/files” folder or you have not set "Private file system path" the way we have specified previously.

    [SCM]actwin,0,0,0,0;

  5. We have restored the snapshot. Now we should update the database. Open http://www.example.com/update.php (replace www.example.com with your domain name), put the site into maintenance mode and update the database (in our case database update was not required). Your Drupal installation may require a database update. Please follow Drupal instructions and update the database.

    Drupal 7.x._How_to_install_sample_data-4

    Please skip the next 3 steps in case Snapshot was installed successfully and your website looks properly. Please note that database import should be performed only in case you experience issues with Snapshot installation!

    In some cases (mostly due to hosting settings) you may experience issues with Snapshots. In this case you can upload sample data directly to Drupal database using a database management tool (for example, PhpMyAdmin ).

  1. Back up your database and remove all Drupal tables. Please note that your database may have tables for another engines/installations. You should remove Drupal tables only. In our case only Drupal is using our database.

  2. Open the Import tab, click Browse and import the “sites\default\private\files\demo\themeXXXX.sql file.

    Drupal 7.x._How_to_install_sample_data-5

    You can also check the detailed tutorial on how to import SQL file using phpMyAdmin tool.

  3. Refresh your site. It should now look like live demo of the template.

    Drupal 7.x._How_to_install_sample_data-6

Feel free to check the detailed video tutorial below:

Drupal 7.x. How to install sample data

Responsive Drupal Templates
This entry was posted in Drupal, Drupal Tutorials and tagged Drupal 7, install, sample data, SQL, template, theme. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket