A list of available Ripe tags
Ripe tags are used in our templating system. When designing your template you have the opportunity to use a range of our ripe tags. All ripe tags are wrapped in curley braces like so. {ripe_tag}
Below is the list of available ripe tags.
SITE_NAME | Name of the website |
DESCRIPTION | Page description |
SITE_SLOGAN | Website slogan |
FRONT_PAGE | Is this the front page. A 1 or 0 |
TITLE | Page title |
HEAD | Put this in the head section of your template design. Some modules need to add extra code into the head section |
CONTENT | The page content |
MENU | Main navigation menu |
MENU_EXT | Main navigation menu and sub menu of the current page |
MENU_ALL | Main menu and all its sub menus |
SUBMENU | The submenu of the current page |
SUBMENU_EXT | The submenu of the current page and the next level submenu if on that page |
SUBMENU_ALL | The sub men of the current page with all sub menus below it |
SUBMENU2 | Displays menu using the sub menu as the trunk |
SUBMENU2_EXT | Displays menu using the sub menu as the trunk. Extended with the submenu of the page we are on. |
SUBMENU2_ALL | Displays menu using the sub menu as the trunk showing all deeper submenus |
URL | Page URL |
LAST_UPDATE | Last update to this page |
JSVALS | Passes variables over to javascript |
WEBSITE_DOMAIN | The website domain |
LEVEL | The folder level to the root. Eg. ../ |
TMPL_PATH | Path to the templates folder |
FILES_PATH | Path to the files folder |
CURRENT_URL | The current page URL |
P | The page ID |
USR_ID | The users ID |
USR | The users name |
Using if statements in your template
Designers also have the ability to use if statements in their template designs. By using an if statement you can do things like make the template look different if the visitor is on the front page.
If statements can include ripe tags to use for the conditions but these ripe tags will need to be wrapped in $ signs instead of the curly braces.
Below are some examples of if statements which can be used in ripe.
{IF $FRONT_PAGE$}Hello front page{/IF}
This will output the words "hello front page" only if the visitor is on the front page.
{IF $FRONT_PAGE$}Hello front page{ELSE}Not front page{/IF}
This will output the words "hello front page" only if the visitor is on the front page and "Not front page" otherwise.
{IF $FRONT_PAGE$ == 1 AND $USR_ID$ > 0}Welcome to the website {USR}{/IF}
This if statement has two conditions and makes use of a ripe tag inside. If the visitor is logged in and on the frontpage then they will see the welcome message with their own name included.
{IF '$TITLE$' == 'My page title'}Example using string conditions{/IF}
This will output some text only if the page title is "My page title". Noticed the conditions are strings so they need to be wrapped inside quotation marks.