This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:design_adv:using_non_geo_templates [2010/05/18 23:19] jonyo |
tutorials:design_adv:using_non_geo_templates [2014/09/25 16:55] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
====== Using Non-Geo Templates ====== | ====== Using Non-Geo Templates ====== | ||
Line 15: | Line 16: | ||
* Knowledge of HTML and CSS. < | * Knowledge of HTML and CSS. < | ||
* Familiar with Smarty Templates. < | * Familiar with Smarty Templates. < | ||
- | * Familiar with any other standards or " | + | * Familiar with any other standards or " |
* Not afraid to learn new things. ;-) < | * Not afraid to learn new things. ;-) < | ||
Line 24: | Line 25: | ||
===== Converting Templates into Geo Template Set ===== | ===== Converting Templates into Geo Template Set ===== | ||
- | This is not yet a complete list of what is needed, we will be adding to it over time as needed. | + | <tip c n> |
+ | |||
+ | This is perpetually | ||
- Make sure the templates you are about to convert, are not already a Geo template set. If the template folder has a **// | - Make sure the templates you are about to convert, are not already a Geo template set. If the template folder has a **// | ||
Line 32: | Line 35: | ||
- Anything that is **not** a template file, such as images, CSS files, JS files, or other media files, go in **my_templates/ | - Anything that is **not** a template file, such as images, CSS files, JS files, or other media files, go in **my_templates/ | ||
- Within the external/ folder, we recommend to organize it into sub-folders for each "media type", for instance place all images inside **external/ | - Within the external/ folder, we recommend to organize it into sub-folders for each "media type", for instance place all images inside **external/ | ||
- | - If templates you just put in main_page/ are **not** already //Smarty Templates//, | + | - If templates you just put in main_page/ are **not** already //Smarty Templates//, |
- Make sure each template file ends in **.tpl** < | - Make sure each template file ends in **.tpl** < | ||
- | - In each template file, add **{header_html}** Smarty tag in the **< | + | - In each template file, add **{head_html}** Smarty tag in the **< |
- In each template file, add **{body_html}** Smarty tag in the **< | - In each template file, add **{body_html}** Smarty tag in the **< | ||
+ | - In each template file, add **{footer_html}** Smarty tag in the **< | ||
- Upload the my_templates/ | - Upload the my_templates/ | ||
- In the admin panel, go to **Design > Template Sets** and check the **Admin Editing** next to the template set you just uploaded (make sure it is the only one being edited, if in advanced mode), and save changes. | - In the admin panel, go to **Design > Template Sets** and check the **Admin Editing** next to the template set you just uploaded (make sure it is the only one being edited, if in advanced mode), and save changes. | ||
- In the admin panel, go to **Design > Page Attachments** and assign a template attachment for each page. If you know you are going to want to customize a template to be different for different pages, now is the time to create a copy of the main template, for use on the different pages. | - In the admin panel, go to **Design > Page Attachments** and assign a template attachment for each page. If you know you are going to want to customize a template to be different for different pages, now is the time to create a copy of the main template, for use on the different pages. | ||
- Take note of all the filenames for media files in your **external/ | - Take note of all the filenames for media files in your **external/ | ||
- | - In the admin panel, go to **Design > Text Search** and search for the filename. | + | - In the admin panel, go to **Design > Text Search** and search for the filename. |
- Look for the first found match for any template file, that references the file " | - Look for the first found match for any template file, that references the file " | ||
- | - On the edit page, click on the **< | + | - On the edit page, click on the **< |
- In the template source code that is displayed in the editor, find where the file you searched for is being used, you will be replacing it with an " | - In the template source code that is displayed in the editor, find where the file you searched for is being used, you will be replacing it with an " | ||
- Repeat for any other places that the media file is referenced. < | - Repeat for any other places that the media file is referenced. < | ||
Line 48: | Line 52: | ||
- Make sure you repeat the above step for each media file. < | - Make sure you repeat the above step for each media file. < | ||
- In the admin, go to **Design > Manager**. | - In the admin, go to **Design > Manager**. | ||
- | - Copy the built-in CSS file **external/ | + | - In your template set, create a new file **external/ |
- | - In your templates, add the following line in the **< | + | - Do the templates |
- Now activate your template set at **Design > Template Sets** by checking the box in the **Active** column for your template set. Make sure it is the only template set that is active (other than the default template set if in advanced mode). < | - Now activate your template set at **Design > Template Sets** by checking the box in the **Active** column for your template set. Make sure it is the only template set that is active (other than the default template set if in advanced mode). < | ||
- | - View the "front side" and browse the site. You will most likely need to heavily modify the **external/ | + | - View the "front side" and browse the site. You will most likely need to heavily modify the following 3 files so that the look of dynamic page content, and dynamic module content, match the look of the rest of your templates. |
+ | * **external/ | ||
+ | < | ||