.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. ==================================================
.. DEFINE SOME TEXTROLES
.. --------------------------------------------------
.. role:: underline
.. role:: typoscript(code)
.. role:: ts(typoscript)
:class: typoscript
.. role:: php(code)
ViewHelpers
^^^^^^^^^^^
- Camaliga comes with two ViewHelpers: one for the camaliga content and one to include JS- or CSS-files.
- The ViewHelper for the camaliga content can be used at single pages. Why?
If you want to display camaliga-content on different places on your page, you can use this ViewHelper in your
page-template to display some informations. You can use it like this in your page-template::
{namespace cam=Quizpalme\Camaliga\ViewHelpers}
And later on::
You can use this variables in the param-parameter:
camaliga_title, camaliga_shortdesc, camaliga_link, camaliga_image, camaliga_street, camaliga_zip, camaliga_city, camaliga_country,
camaliga_phone, camaliga_mobile, camaliga_email, camaliga_latitude, camaliga_longitude, camaliga_custom1, camaliga_custom_2, camaliga_custom3.
- The second ViewHelper can be used similar. First set the namespace at the top of the template.
Then use the ViewHelper to include JS- oder CSS-files like this::
This is an example of the template Carousel.html. Use see, which parameters can be set.
The ViewHelper indicates the files on the file-ending .css or .js. Second example with all parameters::