This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:design_adv:template_set_loading [2010/03/16 17:56] jonyo Geo 5.0 changes |
tutorials:design_adv:template_set_loading [2014/09/25 16:55] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Template Set Loading | + | {{indexmenu_n> |
+ | ====== Template Set Loading ====== | ||
<tip c w> | <tip c w> | ||
Line 13: | Line 14: | ||
What the tutorial specifically does, is walk you through the steps to set it up so that it will " | What the tutorial specifically does, is walk you through the steps to set it up so that it will " | ||
- | **Requires Geo 4.0.0** | + | <tip c n> |
- | + | ||
- | <tip c n> | + | |
- | + | ||
- | Every time you make a change in the admin at [[admin_menu/ | + | |
This tutorial will walk you through the steps to set up your site, so that someone can view the site using specific custom template set just by viewing a special URL. | This tutorial will walk you through the steps to set up your site, so that someone can view the site using specific custom template set just by viewing a special URL. | ||
Line 27: | Line 24: | ||
**Instructions** | **Instructions** | ||
- Turn off Geo cache, if currently turned on, in your admin at **Site Setup > Cache**.((Be sure to keep the cache turned OFF for as long as you are viewing the site with an alternate template set. Otherwise it will cache your alternate template set any time you view the site using it, so that " | - Turn off Geo cache, if currently turned on, in your admin at **Site Setup > Cache**.((Be sure to keep the cache turned OFF for as long as you are viewing the site with an alternate template set. Otherwise it will cache your alternate template set any time you view the site using it, so that " | ||
- | - In your admin, at **Design > Template Sets**, ensure that the template set(s) that you want to have active "by default" | + | - In your admin, at **Design > Template Sets**, ensure that the template set(s) that you want to have active "by default" |
- For the purpose of this tutorial, we will assume your " | - For the purpose of this tutorial, we will assume your " | ||
- Download and open the file **geo_templates/ | - Download and open the file **geo_templates/ | ||
Line 38: | Line 35: | ||
## if you want. | ## if you want. | ||
## | ## | ||
- | ## Generated: | + | ## Generated: |
########################################### | ########################################### | ||
Line 50: | Line 47: | ||
* NOTE: Default template set is always added by system as the last template set | * NOTE: Default template set is always added by system as the last template set | ||
| | ||
+ | | ||
+ | * If you do not wish manual changes to be overwritten next time admin makes a | ||
+ | * change, be sure to put them in the " | ||
*/ | */ | ||
- | + | ||
+ | if (!defined(' | ||
+ | # [CUSTOM SECTION] # | ||
+ | //Anything manually added to this section will be left intact even if changes | ||
+ | //are made in the admin panel. | ||
+ | |||
+ | //BOO! | ||
+ | |||
+ | # [/CUSTOM SECTION] # | ||
+ | } | ||
geoTemplate:: | geoTemplate:: | ||
</ | </ | ||
If you are still only using the default template set, that last line will be replaced by a //PHP Comment// stating that there are no template sets. That is normal, however this setup is not common on " | If you are still only using the default template set, that last line will be replaced by a //PHP Comment// stating that there are no template sets. That is normal, however this setup is not common on " | ||
< | < | ||
- | - Add the following code after the "*/" | + | - Add the following code between |
<code php> | <code php> | ||
########## | ########## | ||
Line 85: | Line 95: | ||
## if you want. | ## if you want. | ||
## | ## | ||
- | ## Generated: | + | ## Generated: |
########################################### | ########################################### | ||
Line 97: | Line 107: | ||
* NOTE: Default template set is always added by system as the last template set | * NOTE: Default template set is always added by system as the last template set | ||
| | ||
+ | | ||
+ | * If you do not wish manual changes to be overwritten next time admin makes a | ||
+ | * change, be sure to put them in the " | ||
*/ | */ | ||
+ | |||
+ | if (!defined(' | ||
+ | # [CUSTOM SECTION] # | ||
+ | //Anything manually added to this section will be left intact even if changes | ||
+ | //are made in the admin panel. | ||
########## | ########## | ||
Line 116: | Line 134: | ||
} | } | ||
########## | ########## | ||
+ | |||
+ | # [/CUSTOM SECTION] # | ||
+ | } | ||
geoTemplate:: | geoTemplate:: | ||
Line 136: | Line 157: | ||
* If you are afraid that someone you do not want to see the new design, might guess the **special URL**, and want to make it harder for them to figure out: You can change that code to be whatever you want in the **t_sets.php** file. You would then use a different URL based on what you changed the //code// to be. < | * If you are afraid that someone you do not want to see the new design, might guess the **special URL**, and want to make it harder for them to figure out: You can change that code to be whatever you want in the **t_sets.php** file. You would then use a different URL based on what you changed the //code// to be. < | ||
* You don't have to name the template set " | * You don't have to name the template set " | ||
+ | * Remember to keep your changes to be located **after** the line: <code php># [CUSTOM SECTION] #</ | ||
+ | * If you do not see the lines noted in the above note, and you are using at least version **5.1.1**, in your admin panel at **Design > Template Sets** make a change to what template sets are active and save changes, then change the settings back and save changes again. | ||
**Tips for PHP Developers: | **Tips for PHP Developers: |