Page type controller not loaded -- 5.7.4.2
Permalink 1 user found helpful
Hey there,
I created a custom page type: Home. Whatever I do, the corresponding controller doesn't seem to be loading.
I tried removing the package and reinstalling it, deleting cache both in browser and in c5.
I tried putting it in the application folder (with Application\Controller\PageType namespace, of course) and uninstall/reinstall, but nothing seems to change.
Any suggestions?
Thanks!
I created a custom page type: Home. Whatever I do, the corresponding controller doesn't seem to be loading.
// {C5ROOT}/packages/mentor/controllers/page_types/home.php <?php namespace Concrete\Package\Mentor\Controller\PageType; use Concrete\Core\Page\Controller\PageTypeController; class Home extends PageTypeController { // ... }
I tried removing the package and reinstalling it, deleting cache both in browser and in c5.
I tried putting it in the application folder (with Application\Controller\PageType namespace, of course) and uninstall/reinstall, but nothing seems to change.
Any suggestions?
Thanks!
Soo, what's the name of the *template* you're using? :)
Did you ever get this resolved, I am having the same exact issue ?
Did you ever get this resolved, I am having the same exact issue ?
Hi,
Yes, the point is, c5.7 separates templates and page types. If you have installed everything correctly, you will see that you can select the given page theme or page template or whatever on the pages attributes page separately from its page type. If you do, your page type controller will load.
Yes, the point is, c5.7 separates templates and page types. If you have installed everything correctly, you will see that you can select the given page theme or page template or whatever on the pages attributes page separately from its page type. If you do, your page type controller will load.
Thanks, I will check it out.