Skip to content
This repository has been archived by the owner on Jan 18, 2019. It is now read-only.

Template Constants Guide

Jon Stockton edited this page Aug 30, 2014 · 6 revisions

Overall Constants

{CONTENT}

Constant for the main content area.

{HEADER}

Constant for the page start.

{FOOTER}

Constant for the page end.

{ISADMIN}Lorem Ipsum{/ISADMIN}

Displays "Lorem Ipsum" only if the user is logged in as an administrator.

=================================================================================

| Access Constants: |

|=================================================================================|

| Constant: | Explanation: |

|---------------------------------------|-----------------------------------------|

|---------------------------------------|-----------------------------------------|

| {CONFIGS_1stDim_2nd_Dim} | Access configuration variables. (only |

| | those whose first dimension doesn't |

| | contain an underscore) |

|---------------------------------------|-----------------------------------------|

| {TEMPLATE_path/to/template} | Include other template files. (starts |

| | from the SimpleSite root as specified in|

| | $configs["path"]["root"]) |

|---------------------------------------|-----------------------------------------|

| {WIDGET_widgetName} | Display widget by the name of |

| | widgetName. |

|---------------------------------------|-----------------------------------------|

| {MODINFO_varName} | Display varName from the $info array in |

| | the current module. |

|---------------------------------------|-----------------------------------------|

| {SESSION_1stDim_2ndDim} | Display session variable. |

|---------------------------------------|-----------------------------------------|

| {GET_varName} | Display GET variable. |

|---------------------------------------|-----------------------------------------|

| {POST_varName} | Display POST variable. |


Clone this wiki locally