The getRootPageFromUrl hook is triggered when searching the current root page. It does not pass any parameters, and expects a database result on success.

Return Values

Return a database result from tl_page if you want to override the default method for searching the root page.



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

// MyClass.php
public function myGetRootPageFromUrl()
    // Do something

More information


See also

results matching ""

    No results matching ""