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