【问题标题】:drupal7 page template for profile2 module用于配置文件 2 模块的 drupal 7 页面模板
【发布时间】:2011-04-06 10:33:41
【问题描述】:

我想在自定义模板文件中显示来自 drupal 7 中 profile2 模块的用户字段。

我可以编辑 profile2--bewerbungsprofil.tpl.php(其中 bewerbungsprofil 是 profile2 类型的名称) - 但我想编辑 page.tpl.php 类型的输出,所以我可以控制页眉和页脚生成的 html 文件。

有没有特殊的命名约定,比如page--profile2--bewerbungsprofile.tpl.php,还是有其他的方式?

【问题讨论】:

    标签: templates profile drupal-7


    【解决方案1】:

    试试:page--profile-bewerbungsprofil.tpl.php

    【讨论】:

      【解决方案2】:

      这是一个解释如何命名模板覆盖的链接

      [[http://drupal.org/node/1089656]]

      我认为您想要做的是将任何 tpl.php 文件复制到您的本地主题(sites/all/themes/yourtheme)中。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-07-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-07-15
        相关资源
        最近更新 更多