Single Page with custom view

Permalink
Hi

I've noticed, that everything with a single page works as expected, but when I add under my Theme in the folder "elements" a custom view.php with the name of the single page (eg. myhotels.php) it does only load the file in application/controllers/, but not the application/single_pages/ anymore.

Content of the myhotels.php exactly the same as content of view.php. Looks to me like a bug? Or do I need to register a custom view that prints out the $innerContent somewhere that I don't know of?

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Go to dashboard/pages and themes/single pages and register your new single page there using the 'Add Single Page' utility
Kiesel replied on at Permalink Reply
That's all done.

Appreciate the help, but as said, the single page works flawless under normal circumstances. It's only when I try to give it a different header and footer and try to use a custom elements/view.php file with it's name "elements/myhotel.php", that suddenly it only loads the controller.php of the single page, but not it's /single_page/ part.
Kiesel replied on at Permalink Best Answer Reply
Okay, got it. This answer from MrKDilkington saved the day (once more):

https://www.concrete5.org/community/forums/customizing_c5/cant-get-c...

Basically, I just had to use the application/themes folder instead of the one under my used packge and it works. Guess that's a bit buggy.

Edit: Nope, I was mistaken, doesn't work either.