This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
admin_menu:design:template_sets:start [2013/07/22 23:40] jonyo [Specify the template set] |
admin_menu:design:template_sets:start [2021/11/10 19:32] (current) jonyo replace <tip> with <note> |
||
---|---|---|---|
Line 13: | Line 13: | ||
{{ : | {{ : | ||
- | ===== What is a Template Set? ===== | ||
- | |||
- | A template set can be thought of as a " | ||
- | |||
- | **For a more advanced explanation: | ||
- | |||
- | A template set is a sub-folder in the **geo_templates/ | ||
- | |||
- | A template set can easily be backed up (just download it using the download button!) or restored (just upload the template set file using the upload button!). | ||
- | |||
- | The templates are broken up into 5 main sub-folders, | ||
- | * // | ||
- | * // | ||
- | * //module/// folder((These templates are highly dynamic, and will usually need updates to them after each software update. | ||
- | * //system/// folder((These templates are highly dynamic, and will usually need updates to them after each software update. | ||
- | * //addon/// folder : Addon Templates : Not normally found in a template set, these template files would replace same-named template files within the addon' | ||
- | |||
- | You can find more information on the tools that are available to use on template sets, in the documentation on this page. | ||
===== Template Sets Columns ===== | ===== Template Sets Columns ===== | ||
Line 48: | Line 30: | ||
When changing things in the admin panel, it will never allow changes to be made to any templates or media files that are not in the selected template set(s) currently selected for "admin editing" | When changing things in the admin panel, it will never allow changes to be made to any templates or media files that are not in the selected template set(s) currently selected for "admin editing" | ||
- | < | + | <note tip> |
==== Template Seek Order ==== | ==== Template Seek Order ==== | ||
Line 56: | Line 38: | ||
The **default** template set will always be the last template set among the active template sets, you will not be able to change the seek order of the default template set. This is because the default template set will be the last place the system tries to look for a template. | The **default** template set will always be the last template set among the active template sets, you will not be able to change the seek order of the default template set. This is because the default template set will be the last place the system tries to look for a template. | ||
- | For more info on why the seek order is so important, read over the [[#How a template set is chosen]] section below. | + | For more info on why the seek order is so important, read over the [[startup_tutorial_and_checklist: |
==== Template Set Name ==== | ==== Template Set Name ==== | ||
This will be the //name// of the template set, which is the folder name for that template set. | This will be the //name// of the template set, which is the folder name for that template set. | ||
+ | |||
+ | ==== Language ==== | ||
+ | |||
+ | This allows you to attach a template set to a specific language. | ||
+ | |||
+ | **Tip:** Set your " | ||
+ | |||
+ | ==== Device ==== | ||
+ | |||
+ | This column **Added in version 7.3.0** | ||
+ | |||
+ | This is similar to the languages column, except instead of loading based on the language, it loads based on what device is detected. | ||
+ | |||
+ | < | ||
===== Template Set Buttons ===== | ===== Template Set Buttons ===== | ||
Line 93: | Line 88: | ||
==== Download ==== | ==== Download ==== | ||
- | <tip c n> | + | <note> |
This button will open a dialog similar to the one displayed below, to allow downloading the entire template set for backup or portability purposes. | This button will open a dialog similar to the one displayed below, to allow downloading the entire template set for backup or portability purposes. | ||
Line 120: | Line 115: | ||
Note that if you edit a template using the admin panel, or even upload a file using the admin panel, it will do the re-scan of the attachments for that file automatically. | Note that if you edit a template using the admin panel, or even upload a file using the admin panel, it will do the re-scan of the attachments for that file automatically. | ||
- | < | + | <note tip> |
=== Re-Scanning Default Templates === | === Re-Scanning Default Templates === | ||
Line 140: | Line 135: | ||
Using this tool will allow you to import text changes that are **recommended by the template designer**, for a template set to display as intended. | Using this tool will allow you to import text changes that are **recommended by the template designer**, for a template set to display as intended. | ||
- | < | + | <note tip> |
The fields in the dialog are explained in more details below: | The fields in the dialog are explained in more details below: | ||
Line 168: | Line 163: | ||
===== Upload Template Set ===== | ===== Upload Template Set ===== | ||
- | <tip c n> | + | <note> |
Use the upload template set button that is below the list of template sets, to upload a template set from a 3rd party template designer, or to restore a template set previously downloaded for backup purposes. | Use the upload template set button that is below the list of template sets, to upload a template set from a 3rd party template designer, or to restore a template set previously downloaded for backup purposes. | ||
Line 195: | Line 190: | ||
If a particular template or file exists in more than one of the selected template sets, the one that is used is the one that would have been chosen by the template system, or the one that is in the template set " | If a particular template or file exists in more than one of the selected template sets, the one that is used is the one that would have been chosen by the template system, or the one that is in the template set " | ||
- | < | + | <note tip> |
See below for more information on each field within the dialog. | See below for more information on each field within the dialog. | ||
Line 205: | Line 200: | ||
**What template types: | **What template types: | ||
- | ====== Advanced Settings ====== | + | ===== Create Main Template Set ===== |
- | This section displays advanced settings, most of which will only display when in **advanced mode**. See the sub-sections below for an explanation | + | Use this button to create your main template set based off of the current default templates. |
- | ===== Use Google Libraries API ===== | + | This tool will copy over the main_page templates, along with external folder with images and such, and create a custom.css file for you to add your custom CSS to. It only copies the templates and media files that are " |
- | This setting **Added in 6.0.0**. | + | As long as you use this tool to update the software, future updates should be relatively smooth. That is the main purpose of this tool, to make sure the template set is update friendly. |
- | Using this feature allows certain JS libraries to be loaded from the Google Libraries API instead | + | Use of the " |
- | * Google Libraries API uses compression by default, if the browser | + | ====== Advanced Settings ====== |
- | * Since it loads off of a common location | + | |
- | Note that this only uses Google Libraries API for the //client side// | + | This entire section has been moved to [[admin_menu/design/settings/start# |
- | + | ||
- | [[http://code.google.com/apis/ | + | |
- | + | ||
- | **Google API Key: | + | |
- | + | ||
- | [[http:// | + | |
- | + | ||
- | Note that this Google API Key is **the same one used for Google Maps Addon**, if you have that addon and are updated | + | |
- | ===== CHMOD 777 Files ===== | + | |
- | + | ||
- | Leave this box **checked** if you are not sure if you need it. | + | |
- | + | ||
- | If this setting is turned | + | |
- | + | ||
- | If this is not turned on, the file permissions will be set at whatever the default is for your server' | + | |
- | + | ||
- | Note that this setting takes effect even if in **Standard Mode**, and it defaults to be checked (turned on). | + | |
- | + | ||
- | ===== Allow Edit of system, module, and addon Templates ===== | + | |
- | If this setting is checked (turned on), in the admin panel, it will allow editing of system, module, and addon templates. | + | |
- | + | ||
- | Note that this setting **ONLY** has an effect when in **Advanced Mode**, and it defaults to be un-checked (turned off). | + | |
- | + | ||
- | <tip c w> | + | |
- | + | ||
- | **Risks of Customizing System, Module, or Addon Templates: | + | |
- | * May require compatibility changes when updating the software. Such changes are the responsibility of the site owner and are not covered by the software update service provided by Geodesic Solutions. | + | |
- | * Problems caused by customizations are not covered by Geo support, if support finds that something works with the " | + | |
- | + | ||
- | </ | + | |
====== Default Template Set - do not change! ====== | ====== Default Template Set - do not change! ====== | ||
Line 253: | Line 217: | ||
We can't stress this enough, you should never edit any files in the default template set directly. | We can't stress this enough, you should never edit any files in the default template set directly. | ||
- | **[[admin_menu/ | + | **[[startup_tutorial_and_checklist: |
- | + | ||
- | + | ||
- | ====== How a template set is chosen ====== | + | |
- | + | ||
- | The template system uses a // | + | |
- | + | ||
- | For a scenario where this might be useful: | + | |
- | + | ||
- | For a more technical illustration of how a particular template from a particular template set is loaded, read on. | + | |
- | + | ||
- | For the purposes of this explanation, | + | |
- | + | ||
- | Contents of **geo_templates/ | + | |
- | * **blufyre_startrek/ | + | |
- | * **main_page/ | + | |
- | * [Full "main body" template set, with it's own template to page attachments and everything] | + | |
- | * **text.csv** [Text import file with recommended text changes] | + | |
- | * **customized_search/ | + | |
- | * **system/ | + | |
- | * **search_class/ | + | |
- | * **details_form.tpl** | + | |
- | * **default/ | + | |
- | * **addon/ | + | |
- | * **external/ | + | |
- | * [Contains un-altered media files (images, | + | |
- | * **main_page/ | + | |
- | * [Contains ALL overall templates and sub-templates, | + | |
- | * **module/ | + | |
- | * [Contains ALL module templates, un-altered] | + | |
- | * **system/ | + | |
- | * [Contains ALL system templates, un-altered] | + | |
- | * **my_templates/ | + | |
- | * **module/ | + | |
- | * **module_zip_filter_1.tpl** [Modified zip filter module template] | + | |
- | * **t_sets.php** [File generated by template system, that stores which template sets to use and in what order to search through them] | + | |
- | + | ||
- | Now, lets assume in the admin, the list of [[#Active]] template sets is in the exact order listed below: | + | |
- | * blufyre_startrek | + | |
- | * my_templates | + | |
- | * customized_search | + | |
- | * default ((Note: Default template set is always active and last in template seek order, but not displayed in admin if currently in //Standard Mode//)) | + | |
- | + | ||
- | When the software is getting a template to use, this is the steps it follows when using the above setup: | + | |
- | * The system needs to load the template **system/ | + | |
- | - Looks for file:\\ geo_templates/ | + | |
- | - Looks for file:\\ geo_templates/ | + | |
- | - Looks for file:\\ geo_templates/ | + | |
- | - Looks for file:\\ geo_templates/ | + | |
- | - If [[admin_menu/ | + | |
- | * This time, we're on the search page, and system is looking for the template **system/ | + | |
- | - Searches through the template sets like last time. This time it stops on the file found in **customized_search/ | + | |
- | + | ||
- | ===== Language Template Sets ===== | + | |
- | + | ||
- | Each template set has a column to set the language. | + | |
- | + | ||
- | If a user is viewing the site with a specific language active - any template set that is set to the same language OR set to "any language" | + | |
- | * Template Set Name - Language - Device((NOTE: | ||
- | * my_templates_spanish - Spanish - Any Device < | ||
- | * my_templates_mobile - Any Language - Mobile/ | ||
- | * my_templates_desktop - Any Language - Desktop Only < | ||
- | * my_templates - Any Language - Any Device < | ||
- | Now, say someone views your site and is using English language, and is browsing on a Desktop computer. | ||
- | If that same person views the site on their mobile device or tablet, on English language, it would load the template sets my_templates_mobile, | ||
===== Specify the template set ===== | ===== Specify the template set ===== | ||
Line 328: | Line 228: | ||
When you are specifying a **template resource**, for instance when using the // | When you are specifying a **template resource**, for instance when using the // | ||
- | To specify the template set to load the template resource from, and bypass the normal behavior outlined in [[#How a template set is chosen]] above, include the template set folder name in square brackets before the name of the template. | + | To specify the template set to load the template resource from, and bypass the normal behavior outlined in [[startup_tutorial_and_checklist: |
< | < |