Naming Drupal 7 template files based on url -


if have page url alias "/api/user/create", how can name template file based on url such "page-api-user-create.tpl.php".

you need name it:

page--api--user--create.tpl.php 

(note double dashes in file name).

see http://drupal.org/node/1089656 more info.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -