Skip to content
hertsch edited this page May 18, 2014 · 2 revisions

This template is using the same basic elements like the template tt_bootstrap_two and is extended by some examples to show you who to use the TemplateTools.

Please have also a look into the template tt_bootstrap_three, all examples are commented.

Check if the current page is the home page

The constant PAGE_ID return the ID of the current page and the constant PAGE_ID_HOME will return the ID of the home page (the page which will be shown if you enter the CMS_URL in the browser address line).

You can compare both ID and if the PAGE_ID is equal to PAGE_HOME_ID the current page is the home page:

{% if PAGE_ID == PAGE_ID_HOME %}
    {{ bootstrap_alert('Welcome to the start page of %CMS_TITLE%!', {'parameter':{'%CMS_TITLE%':CMS_TITLE}}) }}
{% endif %}

In the example above the template is using the function bootstrap_alert() to prompt an alert in Bootstrap style.

The message 'Welcome ... ' will be automatically translated, have a look into the