-
Notifications
You must be signed in to change notification settings - Fork 1
tt bootstrap three
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.
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
- If you spot a typo or want to contribute an article, a how-to or a tip, feel free to edit the Wiki directly
- If you you have any questions, please visit the phpManufaktur Support Forum
This Documentation is part of the kitFramework Project
© 2014 by phpManufaktur, kitFramework and TemplateTools are published under MIT license.