zikula-modules / Pages

Simple HTML Pages
https://ziku.la/
18 stars 4 forks source link

custom tpl works only with parameter URLS #4

Closed kaffeeringe closed 12 years ago

kaffeeringe commented 13 years ago

modules/Pages/lib/Pages/Controller/User.php ll242 contains a function that loads a custom template if it exists with a special name:

        // determine which template to render this page with
        // A specific template may exist for this page (based on page id)
        if (isset($pageid) && $this->view->template_exists('user/display_' . $pageid . '.tpl')) {
            $template = 'user/display_' . $pageid . '.tpl';
        } else {
            $template = 'user/display.tpl';
        }

That workd only if you turn off short URLs.