getRootPageFromUrl

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.

Example

<?php

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

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

More information

References

See also

results matching ""

    No results matching ""