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.
- Open a code editor or Adobe Dreamweaver.
- Customize the template using HTML and the available tags for the module.
- 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. - 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.
- Open the page containg the module in editing mode by selecting Site Manager > Pages, and clicking the page in the tree view.
- Locate the module on the page. Example {module_announcement,a}.
- 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”}
- Click Update or Save Draft.
Reference url : http://helpx.adobe.com/business-catalyst/partner/using-custom-templates-modules.html
No comments:
Post a Comment