Hey folks
This is a pretty important bug. I set up a folder in the /panels/layouts/omega_24/ folder called /section_front/.
In that folder I have the three important files:
section_front.inc
section_front.png
section_front.tpl.php
In the back-end everything is fine. I manage pages, choose my layout, etc.
Then on the front end I get a PHP error:
Warning: include(var/www/ike/sites/all/themes/omega/omega/panels/layouts/omega_24/section_front/section_front.tpl.php) [function.include]: failed to open stream: No such file or directory in theme_render_template() (line 1247 of var/www/ike/includes/theme.inc).
So, I change the tpl file instead to have hyphens instead of underscores: section-front.tpl.php
The front-end works, but now the back-end area has a similar PHP error, but this time it can't find the file: section_front.tpl.php!!
(Backend page: http://ike.local:8082/admin/structure/pages/nojs/operation/term_view/han...)
So, the workaround is just to keep two copies of the template, one to keep the admin quiet, and one to keep the front-end quiet. Obviously, the theme just look ONLY for files with underscores, or keep it open for the developer to decide.
Comments
Comment #1
marcoka CreditAttribution: marcoka commentedComment #2
dyardley CreditAttribution: dyardley commentedIt should be a double hypen, try using section--front.tpl.php ( note that is a double hypen )
Comment #3
Cellar Door CreditAttribution: Cellar Door commentedDid the double dash work to fix this? If not please re-open and we can address any issues.
Comment #4
Cellar Door CreditAttribution: Cellar Door commentedComment #5
Cellar Door CreditAttribution: Cellar Door commentedComment #6
steinmb CreditAttribution: steinmb as a volunteer commented