Using custom templates for modules | Adobe Business Catalyst

Add a custom template

To create a custom module template, first decide on the module you want to customize. The tags available for a template differ depending on module being used.

  1. Open a code editor or Adobe Dreamweaver.
  2. Customize the template using HTML and the available tags for the module.
  3. Save the file with a .tpl extension.


    Note:Ensure that the page is not saved as a .html file. HTML files are automatically added as web pages when uploaded to your Business Catalyst site.
  4. Upload the .tpl file to your site using SFTP or the Business Catalyst file manager. See Upload files to the site.

Specify the template in a module

You can now specify the template you have added to your site by customizing the module inserted in a page.

  1. Open the page containg the module in editing mode by selecting Site Manager > Pages, and clicking the page in the tree view.
  2. Locate the module on the page. Example {module_announcement,a}.
  3. Modify the module tag by specifying the template path at the end of the module as below:

    {module,announcement,a template=”/path/to/mytemplate.tpl”}

    Replace "/path/to/mytemplate.tpl" with the file path to the file you have uploaded to your site.

    Note:Ensure you do not have a comma between the last parameter and the template reference. Example:
    • Correct syntax: {module,announcement,a template=”/path/to/mytemplate.tpl”}
    • Incorrect syntax: {module,announcement,a, template=”/path/to/mytemplate.tpl”}
  4. Click Update or Save Draft.
Reference url : http://helpx.adobe.com/business-catalyst/partner/using-custom-templates-modules.html

No comments:

Post a Comment