This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:design_adv:replace_addon_templates [2009/08/13 21:06] jonyo |
tutorials:design_adv:replace_addon_templates [2014/09/30 17:37] (current) geojames |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Customizing Addon Templates ====== | ====== Customizing Addon Templates ====== | ||
- | This tutorial will walk you through all the steps necessary to customize Addon template file(s), without touching the original template files in the addon' | + | This support |
- | + | ||
- | <tip c w> | + | |
- | + | ||
- | Before attempting to make changes as described here, be sure you have a **firm grasp of [[tutorials/ | + | |
- | + | ||
- | Depending on the use, Addon templates, can be very dynamic and closely related with their PHP file counterparts in the Addons. | + | |
- | + | ||
- | Also note that supporting file-based template changes is outside the scope of the support | + | |
- | + | ||
- | ===== What you need ===== | + | |
- | **Skills** | + | |
- | * Comfortable with using FTP (to upload and download template files from your site) < | + | |
- | * Basic understanding of how HTML, Smarty Templates, and/or PHP works will help. < | + | |
- | * Not afraid to learn new things. ;-) < | + | |
- | + | ||
- | + | ||
- | **Handy tools when editing template files:** | + | |
- | * [[http:// | + | |
- | + | ||
- | + | ||
- | ===== Getting Started - Creating a Template Set ===== | + | |
- | + | ||
- | Note that by //addon template//, we mean any template used by an addon, one that is found in the addon' | + | |
- | + | ||
- | Use the following instructions to modify 1 (or more) addon templates. | + | |
- | + | ||
- | - In your Geo admin pages for the addon, and in the documentation for the addon, check to see if what you are attempting to accomplish can already be done by changing settings in the admin. | + | |
- | - Using FTP, create a new directory **geo_templates/ | + | |
- | - In that directory, create a sub-directory named **addon/ | + | |
- | - Duplicate the //directory path// for the template you wish to modify, if the template is found in a sub-directory of the addon templates. | + | |
- | * **addons/ | + | |
- | * **geo_templates/ | + | |
- | < | + | |
- | - Copy the file **addons/ | + | |
- | **Original template file (ships with addon, do not edit)** | + | |
- | addons/ | + | |
- | **Customized template file (you create and edit this one)** | + | |
- | geo_templates/ | + | |
- | < | + | |
- | - Repeat the copy for any other templates you may want to customize. | + | |
- | <tip c w> | + | |
- | + | ||
- | Also, on addon templates created by Geodesic Solutions be sure to keep the part at the top of the file that looks like **{* $Rev: 12345$ *}** - when you update you will be able to compare this " | + | |
- | < | + | |
- | - In the admin, on the page [[admin_menu: | + | |
- | + | ||
- | Now, the **my_templates** should be at the top of the template sets to use in the admin. | + | |
- | + | ||
- | Make changes to the file(s) in **geo_templates/ | + | |
- | + | ||
- | ===== See Also ===== | + | |
- | * [[admin_menu: | + | |
- | * [[tutorials: | + | |