This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
admin_menu:page_modules:start [2010/05/13 17:12] james |
admin_menu:page_modules:start [2014/09/25 16:55] (current) |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| There used to be HTML modules within versions earlier than v5. Within the v5 implementation of the Smarty template system you can create as many templates and sub-templates to use in those page templates as you want. Within the default v5 design the head.tpl template just such a sub-template. | There used to be HTML modules within versions earlier than v5. Within the v5 implementation of the Smarty template system you can create as many templates and sub-templates to use in those page templates as you want. Within the default v5 design the head.tpl template just such a sub-template. | ||
| - | | + | <code html>{include |
| - | + | ||
| - | ===== Deprecation of PHP Modules in v5 ===== | + | |
| - | + | ||
| - | There also used to be php modules within the Enterprise edition of our software. | + | |
| - | < | + | To show text only if a user is logged in or not logged in, you can use the following in any template: |
| - | {php} | + | |
| - | echo "hello world< | + | |
| - | {/php} | + | |
| - | </ | + | |
| - | Page modules run independently of the {body_html} tag and have their own settings within each modules administration page. Each administration tool contains settings that pertain to and control the functionality of that specific module. | + | <code html> |
| + | {if not $logged_in} | ||
| + | You are NOT Logged in! | ||
| + | {else} | ||
| + | Welcome! | ||
| + | {/if} | ||
| + | </ | ||
| ===== Module Attachments ===== | ===== Module Attachments ===== | ||
| Within each modules admin tool page you will see a section at the bottom of the page that contains all of the page templates that specific modules placement tag is found. | Within each modules admin tool page you will see a section at the bottom of the page that contains all of the page templates that specific modules placement tag is found. | ||
| + | |||
| + | <tip c n>Note that page to module attachment is automatically done by the software. | ||
| + | |||
| + | DESIGN > TEMPLATE SETS | ||
| + | |||
| + | </ | ||
| ===== Page Module Font Controls ===== | ===== Page Module Font Controls ===== | ||
| - | Page module fonts, like other fonts in the system, are controlled by css documents within the system. | + | Page module fonts, like other fonts in the system, are controlled by css documents within the system. |