Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

SilverStripe SiteTree Importer Module

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 code
Octocat-spinner-32 tests
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 README.md
Octocat-spinner-32 _config.php
Octocat-spinner-32 composer.json
README.md

Site Tree Importer Module

Build Status

Maintainer Contact

  • Sam Minnee (Nickname: sminnee)

Requirements

  • SilverStripe 2.4.0 or later

Installation

No installation required.

Usage

Make a tabbed-out file as directed in the form that appears above. Make sure that you use tabs, not spaces. Visit http://localhost/SiteTreeImporter?flush=1. Select your tabbed-out file in the file field, and tick the other two boxes as appropriate:

Clear out all existing content? - This will delete everything from your site before running the importer. Use with caution! If you don't tick this, then the pages will be added to the existing site.

Publish everything after the import? - This will publish each of the pages that the importer creates. If you don't tick this, then the pages will be left as draft-only.

Format

The site tree import module lets you take a tabbed out file of the following format, and load it into your CMS as a site tree.

Home
About
    Staff
        Sam
        Sig
Products
    Laptops
        Macbook
        Macbook Pro
    Phones
        iPhone

Related

See the static importer module for a more sophisticated importer based on crawling existing HTML pages, and extracting content via XPATH.

Something went wrong with that request. Please try again.