Cannot assign theme template to single page

Permalink
I try to make a custom single page in my current theme-layout but can't get it to work.

I put the content of the page (a form) in /single_pages directory and added the single page in the dashboard under Single Pages.
Because I want the layout in my theme I added a template-page with exactly the same name in the /themes/my_theme directory.
Then I added $v->setThemeByPath('/my_single_page', "my_theme"); in the config/site_theme_paths.php.
The single page is displayed without the header, footer and style information of my theme. It does not take the content of the my_single_page.php nor of the view.php in my theme directory.

What's funny is that I did exactly the same for my login and register page and there is works fine. Is there an issue with custom made single pages or am I overlooking something?

 
Ward replied on at Permalink Reply
Hi Marshe,

I am having the exact same issue but with theming the page_not_found single page

I am pretty sure I did it correctly:

⁃ Edited /config/site_theme_paths.php with $v = View::getInstance(); $v->setThemeByPath('/page-not-found', "my_theme_name");
⁃ Copied /concrete/themes/page_not_found.php to /single_pages/page_not_found.php

At this point I can tell its working so far, I added an extra period to /single_pages/page_not_found.php and can see it show up on the 404 page. However, I can't get the page to theme. I tried:

⁃ Adding a page_not_found.php with the <?php print $innerContent; ?> in it, to the /themes/my_theme_name/ folder and activating it as a template in the dashboard
⁃ Adding a view.php page copied from /concrete/themes/ folder to the /themes/my_theme_name/ folder.

Neither of these worked. I can view the 404 and see the extra period and tell that only the /single_pages/page_not_found.php file is being used. I need to get this 404 skinned so I can finish the site. Any advice?
Ward replied on at Permalink Reply
Also, if I login and go to the sitemap, check Show System Pages, select Page Not Found and click visit, it will take me to the page but the edit bar at the top of the screen just shows the Concrete logo, nothing else, no ability to edit, essentially it looks exactly the same as it does to a non-logged in visitor.
Ward replied on at Permalink Reply
Nevermind, solved, I followed a bad tutorial on the web. The how to is what you need to follow but I used the forum first and then the dev documentation. This is what you need:http://www.concrete5.org/documentation/how-tos/designers/themimg-sy...