contao/test — Issue #1467: parseMetaFile-Hook
Author: Toflar
Created: 2011-11-29 07:58:01+00:00
State: open
Labels: Duplicate, Feature

Anlässlich der [Dikussion um Meta-Angaben](http://www.typolight-community.de/showthread.php?t=5212) hier ein Vorschlag für einen Hook. Wäre prima, wenn dieser es noch in 2.8 schaffen würde

![](

/system/modules/frontend/Frontend.php, Diff (basierend auf 2.8.RC2):

```
**** 320,329 *****
``` 320,342 ```
if (in_array($strPath, $this->arrProcessed))
{
return;
}

+	if (isset($GLOBALS['TL_HOOKS']['parseMetaFile']) && is_array($GLOBALS['TL_HOOKS']['parseMetaFile']))
+	{
+	foreach ($GLOBALS['TL_HOOKS']['parseMetaFile'] as $callback)
+	{
+	$this->import($callback[0]);
+	if ($this->$callback[0]->$callback[1]($strPath, $this, $blnIsFile))
+	{
+	$this->arrProcessed[] = $strPath;
+	return;
+	}
+	}
+	}
+
$strFile = $strPath . '/meta_' . $GLOBALS['TL_LANGUAGE'] . '.txt';

if ()file_exists(TL_ROOT . '/' . $strFile))
{
$strFile = $strPath . '/meta.txt';
```

Related issues: #1087

--- _Originally created on January 27th, 2010, at 06:03pm (ID 1467)_