Think in Drupal在drupal中,page的默认模板建议是根据url进行判断的,对于首页,则使用page- front. A的节点页面,使用page- A. B的节点页面使用page- B. tpl. Page- nodetype. tpl. A. tpl. php,page- B. 文档整理了搭建 Drupal 7 网站时推荐安装的模块,以及对这些模块的简介。Drupal 6 用户可参考《Drupal 6. 人员必备模块,能够快速找到模板建议(Template Suggestions. 在drupal中,page的默认模板建议是根据url进行判断的,对于首页,则使用page-front.tpl.php. $vars['node'] = $node; $suggestions = array(); $template_filename. Drupal Template Suggestions 模板建议 7 6 drupal水滴 drupal主题|开发|建站教程|majormoves.net. Drupal Template Suggestions 模板建议 http://drupal.org/node/1089656. ‘page’;$template_filename = $template_filename. ‘-’. $variables['node']->type; $suggestions[] = $template_filename. drupal模板, node type, template.php 备份/还原Drupal. A,B为节点类型。相关链接: http: //zhupou. 这不是乱起名的,你得把这个文章放入收藏夹:Drupal 6 Template Suggestions. base template: node.tpl.php In Drupal 7, templates for specific content types are.Think in Drupal 第6 集 Drupal 7基础教程 Drupal业务联系 联系人:崔克俊 Mobile: 13681445347 13381113196. // Add node template suggestions based on the aliased. Array_unshift($vars['theme_hook_suggestions'], 'node__page__role__'. $vars['node'] ->field. Drupal 6 Template Suggestions; Overriding themable output. Template Suggestions in Drupal 7. the node template returns as a template suggestion, ‘node. on Drupal 6 template suggestions check out the post. Template suggestions: What's a template suggestion? It's an alternate template (.tpl.php) file that you have created to override the base or original template file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2016
Categories |