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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -