|
|
|
Step by Step Instructions for Import
|
|
|
|
|
|
Pre-requisites
- SamePage instance (3.4 or upwards) with a valid license should be up and running.
- Content to be imported should be available as static HTML files in the same server.
Download
- Download the attached and extract it into the same drive as the Samepage installation.
- It will automatically create a wikiimport folder with bin, config, lib and log
Configuration
- Open the wiki.props.import file under the /config folder and modify the following properties as appropriate:
SamePageHome=<SamePage folder path> for e.g. C:/samepage
net.etouch.utils.db.url=jdbc:oracle:thin:@<DB hostname>:1521:<SID>
net.etouch.utils.db.user=<DB user>
net.etouch.utils.db.password=<DB password>
net.etouch.cm.remoteurl=http://host:port/cm/newui/wiki/index.jsp
net.etouch.cm.remotepass=<password for system user>
|
- Open the wikicontroller.xml file under the wikiimport/config folder and specify a unique alphanumeric string for the batch id:
<controller batchId="<batch_id>”
|
The batch id is useful to distinguish the log entries of a particular import run. Note, if the import is run twice with the same batch id, files already imported won't be imported again.
Content Import
- Go to the folder wikiimport/bin and run the file wikiimport.bat
- The tool prompts for the following two inputs:
- Filepath - The complete folder path of the HTML content to be imported.
- SamePage Project Name - The SamePage project into which the content should be imported.
Viewing Imported Content and Import Logs
- Sign in into SamePage as system and browse to the appropriate project to view the imported content.
- To view the import logs, go to wikiimport/log folder. You will find a Import_<batch_id>.log . This lists out all files that were successfully imported as well as those that failed to import.
- To view error details, open the logger.log file in the same folder.