Visitors GT
From Contao Community Documentation
Incomplete Article: This article is not finished yet and needs expansion.
Please expand it and remove this notice when it is finished. |
It requires the module 'GraphicalText' for the generation of graphics files.
Extension-Overview | |
---|---|
Name of the developer | Glen Langer (BugBuster) |
Developer Website | http://www.contao.glen-langer.de |
Version of the extension | 1.0.1 |
Compatibility with Contao Version | from 2.9 |
Compatibility with TYPOlight Version | 2.8.0 - 2.8.4 |
Link to Extension Repository | http://www.contao.org/extension-list/view/visitors_gt.en.html |
Donate the developer | Cappuccino |
Link to Tracker | http://dev.typolight-forge.org/projects/visitorsgt/issues |
Depending of ff. Extension | Visitors, GraphicalText |
Contents
Forum
Questions about the Visitors module will be answered in forum: Forum
Errors and requests can be reported in the Issue Tracker.
Installation
The installation of the module occurs about the extension Repository in back end of Contao.
A manual installation is possible. Download the ZIP file from Extension Repository, unzip and transfer it.
A directory should have been created "/system/modules/visitors_gt".
Then call /contao/install.php - Perform Update Database.
( /typolight/install.php in older TYPOlight installations )
The module Visitors GT is dependent on the modules "Visitors" and "GraphicalText". It must therefore be installed with manual installation.
Using
The add-on module requires the module Visitors for counting and the module GraphicalText for the generation of graphics files. It includes only the insert-tags for the display of values.
{{cache_visitors_gt::catid::name::gttagname}} {{cache_visitors_gt::catid::online::gttagname}} {{cache_visitors_gt::catid::start::gttagname}} {{cache_visitors_gt::catid::totalvisit::gttagname}} {{cache_visitors_gt::catid::totalhit::gttagname}} {{cache_visitors_gt::catid::todayvisit::gttagname}} {{cache_visitors_gt::catid::todayhit::gttagname}} {{cache_visitors_gt::catid::averagevisits::gttagname}}
For category ID = 1 and GraphicalText Tagname "MyVisitors" that would be like that:
{{cache_visitors_gt::1::totalvisit::MyVisitors}}
Determination the "catid"
To determine the category ID, go into the category overview of the module "Visitors" with your mouse over the "i".
The tooltip displays the ID.
Or click on the "i", in the following site is in the first line the ID.
Determination the "gttagname"
The "gttagname" is the "Tag" name as it was created in the backend module in the graphical text.
The overview is the name in the first column in edit mode the field "Tag".
gttagname
Demo Template
Zur Demonstration (Syntax) wurde ein Template "mod_visitors_fe_GT_all" beigefügt. Dieses ist nach der Installation von Visitors GT im Modul Visitors auswählbar. Es muss durch CSS Angaben jedoch noch angepasst werden (wird nicht mitgeliefert).
Im Template selbst muss der "gttagname" definiert werden, siehe dort. Default ist "gtvisitors".
Das Template wandelt die Legenden direkt über die Insert-Tags von Graphical Text um, die Werte gehen über die Insert-Tags vom Modul Visitors GT.