generateXmlFiles

The generateXmlFiles hook is triggered when the XML files are (re)generated e.g. by clicking "System -> Maintenance -> Recreate the XML files" in the back end. It has no parameters and does not expect a return value.

Available

from Contao 3.0.0.

Example

<?php

// config.php
$GLOBALS['TL_HOOKS']['generateXmlFiles'][] = array('MyClass', 'myGenerateXmlFiles');

// MyClass.php
public function myGenerateXmlFiles()
{
    // see
    // generateFeeds() in
    // system/modules/calendar/classes/Calendar.php
    // or
    // system/modules/news/classes/News.php
    // for examples.
}

More Information

References

results matching ""

    No results matching ""