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 [2012/07/23 23:29] 127.0.0.1 external edit |
tutorials:design_adv:using_non_geo_templates [2014/09/25 16:55] (current) |
||
---|---|---|---|
Line 24: | Line 24: | ||
===== Converting Templates into Geo Template Set ===== | ===== Converting Templates into Geo Template Set ===== | ||
+ | |||
+ | <tip c n> | ||
This is perpetually a work in progress((even more so than the rest of the WIKI)), we will be adding to it over time as needed. | This is perpetually a work in progress((even more so than the rest of the WIKI)), we will be adding to it over time as needed. | ||
Line 35: | Line 37: | ||
- 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 49: | 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**. | ||
- | - In your template set, create a new file **external/ | + | - In your template set, create a new file **external/ |
- | - Repeat | + | - Do the templates use **jQuery**? If so, you will need to **remove** anywhere in the templates |
- | | + | |
- | | + | |
- | < | + | |
- | - In your templates, add the following lines inside | + | |
- | <link href="{external file=' | + | |
- | <link href=" | + | |
- | - Do the templates use **jQuery**? | + | |
- 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 following 3 files so that the look of dynamic page content, and dynamic module content, match the look of the rest of your templates. | - 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/ | + | * **external/ |
- | * **external/ | + | |
- | * **external/ | + | |
< | < | ||
- | |||