Difference between revisions of "Graphical Automator"

From Contao Community Documentation

m (Forum)
m (Technical Details)
 
(7 intermediate revisions by one user not shown)
Line 18: Line 18:
  
  
{{Note|Translation follows}}
 
 
=Forum=
 
=Forum=
 
Questions about the Visitors module will be answered in forum: [http://www.typolight-community.org/viewforum.php?f=21 Forum]
 
Questions about the Visitors module will be answered in forum: [http://www.typolight-community.org/viewforum.php?f=21 Forum]
Line 27: Line 26:
  
 
=Installation=
 
=Installation=
Installation erfolgt über das Extension Repository im Backend der Contao Installation.<br />
+
The installation of the module occurs about the extension Repository in back end of Contao.<br />
Eine manuelle Installation ist möglich, dazu die ZIP Datei [http://www.contao.org/erweiterungsliste/view/graphicalautomator.de.html vom Extension Repository laden], entpacken und entsprechend übertragen.<br />
+
A manual installation is possible. [http://www.contao.org/extension-list/view/graphicalautomator.en.html Download] the ZIP file from Extension Repository, unzip and transfer it.<br />
Dadurch sollte ein Verzeichnis /system/modules/graphicalautomator angelegt worden sein.<br /><br />
+
A directory should have been created "/system/modules/graphicalautomator".<br />
Das Graphical Automator Modul macht nur Sinn bei Einsatz des Moduls "[[GraphicalText|GraphicalText]]".<br />
+
Then call /contao/install.php - Perform Update Database.<br />
 +
( /typolight/install.php in older TYPOlight installations )<br /><br />
 +
The Graphical Automator module is only useful when using the module "[[GraphicalText|GraphicalText]]".<br />
  
=Einleitung=
+
=Introduction=
Das Modul [[GraphicalText|Graphical Text]] generiert Grafik-Dateien die im Verzeichnis /system/html abgelegt werden. Normalerweise, z.B. bei der Navigation, ändern sich die Namen nicht oder nur sehr selten. Hat man nun aber einen Zähler, z.B. Besucherzähler, und lässt den sich grafisch ausgeben, werden ständig neue Grafikdateien erzeugt, jedoch werden die alten nicht wieder gelöscht.<br />
+
The module [[GraphicalText|Graphical Text]] generated graphic files that are stored in /system/html. Normally, e.g. in navigation, do not change the file name. Not so with a counter (e.g. visitor counter), when this can be graphically show will be produced continuously new graphics files. However, the old image files are not deleted again.<br />
 
<br />
 
<br />
Der CRON von Contao löscht einmal pro Tag das /system/tmp Verzeichnis, nicht jedoch das /system/html Verzeichnis. Das ist auch gut so! Niemand will das täglich alle Vorschaubilder und umgerechnete Bilder neu berechnet werden müssen.<br />
+
The Contao CRON clears once a day the /system/tmp directory, but not the /system/html directory. This is a good thing! No one wants that every day all the preview images and converted images must be recalculated.<br />
 
<br />
 
<br />
Die alten Bilder des Besucherzählers, um beim Beispiel zu bleiben, können jedoch ruhigen Gewissens gelöscht werden.<br />
+
The old pictures of the visitor counter (to stay with the example) but can safely be deleted.<br />
Genau dazu dient dieses Modul.<br />
+
Just that this module was written.<br />
 
<br />
 
<br />
=Beschreibung=
+
 
Das Modul Graphical Automator klinkt sich dazu in den CRON von Contao ein, genauer in den "daily" Aufruf per Hook. Das Modul sucht dabei alle Dateien die den Präfix "graphtext-" haben.<br />
+
=Description=
 +
The module Graphical Automator plugs into the CRON of Contao, more precisely in the "daily" call by Hook. This module searches all the files that have the prefix "graphtext-".<br />
 +
Newly-generated graphics may not be deleted right at the time of delivery. (Broken Picture in the browser) Therefore, the timestamp of the files reviewed and cleared only those who are older than 10 minutes.<br />
 
<br />
 
<br />
Damit nicht genau zum Zeitpunkt der Lieferung neu generierter Grafiken diese gleich wieder gelöscht werden und somit ein Broken Picture im Browser erzeugt, wird der Zeitstempel der Dateien geprüft und nur solche gelöscht, die älter als 10 Minuten sind. Da zum selben Zeitpunkt die Seiten im Cache auch gelöscht wurden, genauer gesagt kurz vorher, braucht hier auf die Grafik Dateien von Seiten im Cache normalerweise keine Rücksicht genommen werden.<br />
+
In the back end [[System-Log]], the action is logged:<br />
<br />
+
Im Backend unter [[System-Log]] taucht dann eine solche Meldung auf:<br />
+
 
  [08.04.2010 00:47] Purged 35 Graphtext images in thumbnail directory.
 
  [08.04.2010 00:47] Purged 35 Graphtext images in thumbnail directory.
 
<br />
 
<br />
=Feinheiten=
+
 
Die Mindest-Haltezeit kann mittels Eintrag in der localconfig.php geändert werden.<br />
+
=Technical Details=
Beispiel für 24 Stunden:<br />
+
The minimum holding time can be changed by entry in the localconfig.php<br />
 +
Example for 24 hours:<br />
 +
<source lang="php">
 
  $GLOBALS['TL_CONFIG']['purgeHtmlFolderGToffset'] = 86400;
 
  $GLOBALS['TL_CONFIG']['purgeHtmlFolderGToffset'] = 86400;
 +
</source>
  
Weitere Beispiele sind in der mitgelieferten config.php enthalten.<br />
+
Other examples are included in the supplied config.php<br />
 
<br />
 
<br />
 
<br />
 
<br />
  
 
----
 
----
 +
--[[User:BugBuster|BugBuster]] 11:05, 20 September 2010 (CEST)

Latest revision as of 13:38, 2 October 2010

I'm not a native English speaker. Please correct my mistakes.


An extension, to delete old grapfic files, generated from module graphical text.


Extension-Overview
Name of the developer Glen Langer (BugBuster)
Developer Website http://www.contao.glen-langer.de
Version of the extension 1.0.0
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/graphicalautomator.en.html
Donate the developer Cappuccino
Link to Tracker http://dev.typolight-forge.org/projects/graphicalautomator/issues


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/graphicalautomator".
Then call /contao/install.php - Perform Update Database.
( /typolight/install.php in older TYPOlight installations )

The Graphical Automator module is only useful when using the module "GraphicalText".

Introduction

The module Graphical Text generated graphic files that are stored in /system/html. Normally, e.g. in navigation, do not change the file name. Not so with a counter (e.g. visitor counter), when this can be graphically show will be produced continuously new graphics files. However, the old image files are not deleted again.

The Contao CRON clears once a day the /system/tmp directory, but not the /system/html directory. This is a good thing! No one wants that every day all the preview images and converted images must be recalculated.

The old pictures of the visitor counter (to stay with the example) but can safely be deleted.
Just that this module was written.

Description

The module Graphical Automator plugs into the CRON of Contao, more precisely in the "daily" call by Hook. This module searches all the files that have the prefix "graphtext-".
Newly-generated graphics may not be deleted right at the time of delivery. (Broken Picture in the browser) Therefore, the timestamp of the files reviewed and cleared only those who are older than 10 minutes.

In the back end System-Log, the action is logged:

[08.04.2010 00:47] Purged 35 Graphtext images in thumbnail directory.


Technical Details

The minimum holding time can be changed by entry in the localconfig.php
Example for 24 hours:

 $GLOBALS['TL_CONFIG']['purgeHtmlFolderGToffset'] = 86400;

Other examples are included in the supplied config.php



--BugBuster 11:05, 20 September 2010 (CEST)

Views
Personal tools

Contao Community Documentation

In other languages
Navigation
Discover
Understand
Enhance
Miscellaneous
Tools