Can't add my custom Page Type
Permalink
Iv'e created new theme and marked it active in my concrete5.
I created custom.php file inside my theme folder(concrete5/themes/mytheme).
Then I go to Dashboard>Page Types>Add new page type.
Name my Page type(for example: "My custom page type") and write to handle "custom"(NOT "custom.php").
And when I try to add it to my webpage, it doesn't load up the code that is inside my custom.php
I've also tried to place my custom.php file into few places:
/concrete5/themes/mytheme
/concrete5/themes/mytheme/elements
/concrete5/page_types
It's always loading my theme's default.php
I created custom.php file inside my theme folder(concrete5/themes/mytheme).
Then I go to Dashboard>Page Types>Add new page type.
Name my Page type(for example: "My custom page type") and write to handle "custom"(NOT "custom.php").
And when I try to add it to my webpage, it doesn't load up the code that is inside my custom.php
I've also tried to place my custom.php file into few places:
/concrete5/themes/mytheme
/concrete5/themes/mytheme/elements
/concrete5/page_types
It's always loading my theme's default.php
Then I go to 'Dashboard - Themes', with activated theme I click 'Inspect', a tick box appears by my new 'pagetype.php'.
I click OK and return to website, use 'Design' to apply the new 'pagetype.php'.
Also might want to check that the right 'Theme' is selected below 'Page Type' list.
Maybe clear the 'Cache' as well.