风格Drupal 7登录页面 [英] Style Drupal 7 log-in page
问题描述
如何设置Drupal 7的登录页面?我使用不同的方法,如 page-user-login.tpl
或 user-login.tpl
page-login.tpl
但没有结果。
How do I style the login-page of Drupal 7? I used different methods like page-user-login.tpl
or user-login.tpl
of page-login.tpl
but with no results.
有没有一个简单的方法来主题您的登录页面在Drupal 7在他自己的 .tpl
-file? / p>
Is there an easy way to theme your login page in Drupal 7 in his own .tpl
-file?
推荐答案
您可以按照以下约定命名模板来覆盖任何页面模板:
You can override any page template by naming your templates in the following convention:
对于页面用户/登录:
page--user--login.tpl.php
对于页面'foo / bar /'
For page 'foo/bar/'
page--foo--bar.tpl.php
一个href =http://drupal.org/node/190815>核心模板和关于覆盖可用的输出获取更多信息。
See Core templates and About overriding themable output for more information.
一旦添加了新的模板文件,请记住清除Drupal的缓存,以便主题注册表有机会选择新的文件。
Remember to clear Drupal's caches once you add a new template file so the theme registry has a chance to pick the new file up.
这篇关于风格Drupal 7登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!