Manual for Contao extension Banner

  Edit This Page

Technical details in the front end module definition

First banner for new visitor

For each new visitor, at first is displayed the first published banner in the category. The choice is then returned to random mode. Thus, a kind of recognition can be achieved.

Templates

Each module can be assigned its own Template. Two different templates are included.

  • mod_banner_list_all
    • All fields are included.
  • mod_banner_list_min
    • The headline and name were removed. It will only display the banner itself.

Both templates also support text banners. For own Templates, the template files must start with "modbanner_list" and end with ".xhtml" / ".html5".
Example: "mod_banner_list_special.html5"

The best way, via the back create a copy of one of the templates mod_banner_list_... and rename this, e.g. in mod_banner_list_special. (the extension is automatically appended, so just like the original)

Prevention of counting their own requests

There were some ideas on how you can prevent your own accesses not to count. Especially if you work with dynamic IPs. Now here is a way to implemented to do this through a customized User Agent string of the browser.

Via:

  • Layout -> Themes -> Modules -> Modul Name

In the applied banners module in the new field "No counting for this HTTP_USER_AGENT partial identifier" , a string is entered, it should be unique.
Example: CTISOK

Several strings are also possible, then enter them separated by commas.

In older browsers the agent string could be adjusted by changing the configuration of the browser. Currently an add-on should be used. For Firefox that would, for example, the User Agent Switcher