User Tools

Site Tools


tutorials:design_adv:add_help_boxes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:design_adv:add_help_boxes [2011/08/03 15:51]
jonyo
tutorials:design_adv:add_help_boxes [2014/09/25 16:55] (current)
Line 1: Line 1:
 +{{indexmenu_n>90}}
 ====== Add More Help Boxes ====== ====== Add More Help Boxes ======
 +
 +<tip c h>**Note:** Due to a bug in Smarty 3.1.8 which was packaged with previous releases, these instructions may not work correctly in older versions of the software.</tip>
  
 This tutorial will describe one way to add more "help boxes", like you have on the listing placement process, by re-purposing one of the extra pages as a page to show help contents. This tutorial will describe one way to add more "help boxes", like you have on the listing placement process, by re-purposing one of the extra pages as a page to show help contents.
Line 10: Line 13:
  
  
-  - In your admin, go to **Design > Manager** and in your template set, inside the main_page section, create a new folder **help_pages**.<+  - In your admin, go to **Design > Manager** and in your template set, inside the main_page section, create a new folder **help_pages**.  The full path will be something **similar to** my_templates/main_page/help_pages/.<
   - Go into this folder, and create a new template named **test.tpl**.  Edit the new file and add something like "Test help!", later you will be adding more contents.<   - Go into this folder, and create a new template named **test.tpl**.  Edit the new file and add something like "Test help!", later you will be adding more contents.<
   - Now navigate to **main_page/extra_pages/** and create a new template **help_pages.tpl**.<   - Now navigate to **main_page/extra_pages/** and create a new template **help_pages.tpl**.<
   - Edit the new **help_pages.tpl** file, and make sure you are on the **<..> Source Code Editor** tab.  For the contents, enter the following:   - Edit the new **help_pages.tpl** file, and make sure you are on the **<..> Source Code Editor** tab.  For the contents, enter the following:
 <code html> <code html>
- 
-{capture assign='template_file'}help_pages/{$smarty.get.help|escape:'url'}.tpl{/capture} 
- 
 {capture assign='explanation'} {capture assign='explanation'}
-{include file=$template_file}+{include file="help_pages/{$smarty.get.help|escape:'url'}.tpl"}
 {/capture} {/capture}
 {include file='help_popup.tpl' g_type='system' g_resource='other'} {include file='help_popup.tpl' g_type='system' g_resource='other'}
Line 41: Line 41:
   - Note that if you specify an invalid value for the help= (for instance if the file does not exist), it will show a template error. <   - Note that if you specify an invalid value for the help= (for instance if the file does not exist), it will show a template error. <
   - Also note that the templates you create in the **help_pages/** folder should not try to use modules or addon tags, as any attachments in that template will not be loaded due to how it dynamically includes that template. <   - Also note that the templates you create in the **help_pages/** folder should not try to use modules or addon tags, as any attachments in that template will not be loaded due to how it dynamically includes that template. <
- 
  
  
tutorials/design_adv/add_help_boxes.1312386695.txt.gz · Last modified: 2014/09/25 16:55 (external edit)