PT Import Content Template Mapping

From ADF Docs
Jump to: navigation, search

Overview

The Template Mapping is a global custom element to setup a relationship between subsites and templates for the imported pages. The mapping establishes a template for all the pages to be imported into the specific subsite. If a template is defined in the subsite mapping record, that will take precedence over the template mapping record.

Steps

  1. Create a new page with the title 'Template Mapping' from the Base Plus One template and in the subsite /webadmin/importcontent/.
  2. In the main content of the page, add a Custom Script element.
  3. From the Custom Script element interface, click the "Edit" icon.
  4. Enter the following text into the Explicit Module path: /ADF/apps/pt_import_content/customcf/template_mapping_manager.cfm
  5. From the Datasheet element interface, click the "Datasheet" icon.
  6. From the "Datasheet Views" dialog, follow the "Click here to create a new datasheet view" link.
  7. Enter the following information and then click "Next":
    1. Name: All Template Mappings
    2. Private: unchecked
    3. Default View: unchecked
    4. Description: View to manage all of the photo sizes
    5. Datasheet Source: Form Result/Custom Element Sheet
  8. From the Datasheet Source dialog, choose the "Template Mapping" custom element and click "Next".
  9. From the Datasheet Columns dialog select the columns ID, SubsiteURL, and TemplateName and move them to the Selected Columns list then click "Finish".
  10. You will be directed to the Datasheet View page. Click "Close" to return to your page.
  11. You will now see the datasheet element on this page. Click the Datasheet element interface icon again and choose "Edit Columns".
  12. Edit the "ID" column.
  13. Change the "Header" text to "Edit/Delete".
  14. Change the "Render Handler" to the following path:
    1. If running CommonSpot 6.0 and higher use the following:
      1. /ADF/extensions/datasheet-modules/1.0/edit-delete-native-CS6.cfm
    2. Else use the following path:
      1. /ADF/extensions/datasheet-modules/1.0/edit-delete.cfm
  15. Save the form.
  16. Publish this page.