Controller of generated single page through package not working
Permalink
Hi,
I generated a single page (/artwork) when installing my package. I have put the controller of this single page in '/packages/artisophy/controllers/single_page/artwork.php', but it doesn't seem to be picked up, yet the single page has been generated.
This is the code of the single page controller:
Is this even possible or am I doing something horribly wrong?
Thanks in advance!
I generated a single page (/artwork) when installing my package. I have put the controller of this single page in '/packages/artisophy/controllers/single_page/artwork.php', but it doesn't seem to be picked up, yet the single page has been generated.
This is the code of the single page controller:
Is this even possible or am I doing something horribly wrong?
Thanks in advance!
If you go to Dashboard -> Pages & Themes -> Single Pages and "Refresh" your single page does the controller work? I have found if you install a single page and then add a controller it's not picked up right away, it's much better to have the controller in place then install the single page.
Also, how did you install the single page? Depending on how you installed it you might need to move the controller.
Also, how did you install the single page? Depending on how you installed it you might need to move the controller.
https://www.concrete5.org/community/forums/customizing_c5/help-with-...
And have a look at the skeleton package I've created, see how it's all done there:
https://www.concrete5.org/community/forums/customizing_c5/free-concr...