Problem finding tpl anf theme functions with hyphen or underscore in the key

febbraro - April 3, 2009 - 18:21
Project:Custom Page
Version:6.x-1.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Had to remove any hyphenated key in order to get custom page to find the tpl file in the current theme.

news-update and news_update did not work, shortening it to news proved to be the key.

Placeholder issue, more details to follow.

#1

irakli - April 6, 2009 - 01:20
Status:active» needs review

#2

irakli - July 24, 2009 - 05:17
Status:needs review» fixed

Long overdue comment on this:

1. Dash does not work in the key (i.e. template file's name). I suspect it is something related to theme engine (since code is just passing the name along), so not really too hot on worrying about this one, to be honest.

2. Underscore definitely works and we use it all the time.

Summary: please, use underscores and do not use dashes in the keys (i.e. theme file names).

Thanks for noting this issue, though.

#3

irakli - July 24, 2009 - 05:17
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.