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

marcoka’s picture

Assigned: Unassigned » himerus
dyardley’s picture

It should be a double hypen, try using section--front.tpl.php ( note that is a double hypen )

Cellar Door’s picture

Status: Active » Postponed (maintainer needs more info)

Did the double dash work to fix this? If not please re-open and we can address any issues.

Cellar Door’s picture

Assigned: himerus » Unassigned
Cellar Door’s picture

Category: bug » support
steinmb’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (fixed)