Difference between revisions of "PT Import Content Installation"

From ADF Docs
Jump to: navigation, search
(Installation/Setup)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
'''Important''': Ensure that the [[Installation | ADF is installed]] and functioning correctly before installing PT Import Content.
 
'''Important''': Ensure that the [[Installation | ADF is installed]] and functioning correctly before installing PT Import Content.
 
  
 
== Installation/Setup ==
 
== Installation/Setup ==
Line 11: Line 10:
 
# [[PT_Import_Content_Ext_Database_Setup|External Database Setup]]
 
# [[PT_Import_Content_Ext_Database_Setup|External Database Setup]]
 
# [[PT_Import_Content_Subsites|Subsites]]
 
# [[PT_Import_Content_Subsites|Subsites]]
 +
# [[PT_Import_Content_CCAPI_Configuration|CCAPI Configuration]]
 
# Pages
 
# Pages
## [[PT_Import_Content_Pages_Dashboard|Dashboard]]
+
## [[PT_Import_Content_Dashboard|Dashboard]]
 
+
## [[PT_Import_Content_Lightbox_Controller|Lightbox Controller]]
== Import Custom Elements ==
+
## [[PT_Import_Content_Job_Type_Manager|Job Type Manager]]
Import two custom elements into your site (via the Elements dialog located in the CommonSpot Site Administrator):
+
## [[PT_Import_Content_Job_Manager|Job Manager]]
 
+
## [[PT_Import_Content_Template_Mapping|Template Mapping]]
#Subsite Mapping
 
#Page Mapping
 
 
 
Note: these elements are located in the /ADF/apps/pt_import_content/exported_objects/ folder
 
 
 
== Build CCAPI page ==
 
#Create a page in the root of your web site called CCAPI (confirm Anonymous users have "Read" access to this page and all of its elements.
 
# Add the following elements to this page:
 
## Subsite Mapping
 
## Page Mapping
 
# Give each element a unique name (e.g. "subsiteMapElement", "pageMapElement")
 
# Record the pageID of this new page
 
 
 
Note: The easiest way to get the pageID is to view the page source code.  Examine the header of the document - you will notice a block of JavaScript with a variable called "jsPageID."  The value of this variable is the pageID for the page.
 
  
Switch into Read Mode after creating this page.  
+
Now that the application is installed run the following configuration step to auto populate the Import Job Type Data.
 +
# On the PT Import Content Dashboard page, locate the tools accordian menu in the right column. 
 +
# Click the "Populate Job Types" link.  This will open a lightbox dialog with the status for auto populating the Import Job Type data into the site.
  
 
== Create Generic Content Template ==
 
== Create Generic Content Template ==
Line 40: Line 28:
  
 
Note: Alternatively, you can use an existing content template as long as the template contains a named Formatted Text Block (with or without header) element.
 
Note: Alternatively, you can use an existing content template as long as the template contains a named Formatted Text Block (with or without header) element.
 
== Configure Site ==
 
# Add the following line to the init() function of your sites ADF.cfc (ADF.cfc is located in /yoursite/_cs_apps/ directory)
 
<source lang="java">
 
loadApp("PTImport");
 
</source>
 
# Copy the /pt_import_content/ folder from the /ADF/apps/pt_import_content/site_folder/ folder - into your sites /_cs_apps/ folder
 
# Copy the /config/ folder from the /ADF/apps/pt_import_content/site_folder/ folder - into your sites /_cs_apps/ folder
 
# Modify the ccapi.xml file located in /yoursite/_cs_apps/config/ directory.  Use the information from the above two steps (Build CCAPI Page and Create Generic Content Template) to configure the <elements> node.
 
# Modify the ptImport.xml file located in /yoursite/_cs_apps/config/ directory to match your current sites environment.  This file will contain the name of the CF Datasource used to access to your external data.
 
# Modify the Subsite Spread Sheet Mapping document located in the/yoursite /_cs_apps/pt_import_content/data/ folder
 
 
Note: make sure that the Content Creation API is enabled for your server (see the CommonSpot Developer's Guide for more info)
 
 
== Build Import Dashboard Page ==
 
# Create a page and place a Custom Script Element on the page
 
# Configure the Custom Script Element to point to the file "main_controller.cfm" located in the /ADF/apps/pt_import_content/customcf/ directory
 
 
[[Category:Import Content]]
 

Latest revision as of 15:09, 6 June 2011

Important: Ensure that the ADF is installed and functioning correctly before installing PT Import Content.

Installation/Setup

Each of the following steps should be completed fully and in the order presented:

  1. Extract Application
  2. ADF Configuration
  3. Import Elements
  4. App Configuration
  5. External Database Setup
  6. Subsites
  7. CCAPI Configuration
  8. Pages
    1. Dashboard
    2. Lightbox Controller
    3. Job Type Manager
    4. Job Manager
    5. Template Mapping

Now that the application is installed run the following configuration step to auto populate the Import Job Type Data.

  1. On the PT Import Content Dashboard page, locate the tools accordian menu in the right column.
  2. Click the "Populate Job Types" link. This will open a lightbox dialog with the status for auto populating the Import Job Type data into the site.

Create Generic Content Template

  1. Create a new page, to be used as the Generic Content template. Typically, this page will derive directly from the Base Plus One and will be located in the root of the site.
  2. Place a Textblock Element on the page and give that element a name (e.g. "pageContent").
  3. Save this page as the Generic Content Template.

Note: Alternatively, you can use an existing content template as long as the template contains a named Formatted Text Block (with or without header) element.