【问题标题】:How can i pick a template in drupal 7 while page creation创建页面时如何在drupal 7中选择模板
【发布时间】:2014-02-13 13:16:46
【问题描述】:

我希望我的 Drupal 7 在仅创建页面时选择我的自定义模板,我该怎么做,有人可以请...

提前致谢

【问题讨论】:

    标签: drupal-7 drupal-modules drupal-theming


    【解决方案1】:

    如果我对您的理解正确,以下 tpl.php 命名语法可能是您正在寻找的:

    node--[type|nodeid].tpl.php
    base template: node.tpl.php
    
    Theme hook suggestions are made based on these factors, 
    listed from the most specific template to the least. 
    Drupal will use the most specific template it finds:
    
    node--nodeid.tpl.php
    node--type.tpl.php
    node.tpl.php
    

    ...或者您可能想查看“显示套件”或“面板”模块,了解我怀疑您正在尝试执行的 GUI 界面。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多