Project:Custom Page
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I created Key = frontpage, and upload custompage-frontpage.tpl.php (as well as frontpage.tpl.php) but why I'm getting the error below after clearing the cache? The docs says Create [key].tpl.php, but the error ask for custompage-[key].tpl.php ? But both not accepted.
TQ

custompage could not find an appropriate theming function or template file for this path [frontpage].
The viable options (in ascending priority) are:
'phptemplate_frontpage' in any module
'THEMENAME_frontpage' in a theme with the name THEMENAME
custompage-frontpage.tpl.php template file in a current theme
Please make sure at least one of these exist and returns a non-empty output
ATTENTION: Theme engine is strongly cached in Drupal versions 6 and up and if/when you add a new tpl.php or a theming function, you need to clear cache before you can see any changes.

Comments

#1

Status:active» fixed

Error message is wrong. It's [key].tpl.php that should go in the current theme and after you clear all caches (from Devel?) - it should work.

Thanks

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.