1

我正在为使用 drupal 创建的客户的网站进行设计更改。看起来像一个drupal 7站点。

我找到了主题文件。page.tpl.php 包含 page-ajaz.tpl.php

该文件具有以下代码

    <div <?php print drupal_attributes($attr) ?>>

  <?php if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { ?>
    <title <?php print drupal_attributes($attr) ?>><?php print $head_title ?></title>
  <?php } ?>

  <?php print $breadcrumb ?>

  <h1 class='page-title'>
    <?php print $title; ?>
  </h1>

  <?php if ($tabs) { ?>
    <div class="tabs"><?php print $tabs ?></div>
    <?php if ($tabs2) { ?>
      <div class="tabs second"><?php print $tabs2 ?></div>
    <?php } ?>
  <?php } ?>

  <div class="page-content">
    <?php if ($messages) { ?>
      <div class="messages"><?php print $messages ?></div>
    <?php } ?>
    <?php
      print $help;      
      print $content;
      print $feed_icons;
    ?>
  </div>

</div>

<?php 
if (in_array('page-ajax', $variables['template_files'])) {
  $settings_js = drupal_add_js();
  unset($settings_js['core']);
  unset($settings_js['module']);
  unset($settings_js['theme']);
  print drupal_get_js('header', $settings_js);
}
?>

客户想要的是将位于 $content var 中的表单移动到 H1 页面标题上方。

看起来开发人员使用了名为 views-exposed-form.tpl.php 的东西。我的猜测是,这是他们正在使用的名为 better_exposed_filters 的模块的模板。

我无法弄清楚如何移动此模块生成的表单,使其显示在标题 H1 上方。

4

1 回答 1

1

尝试在块管理页面中找到类似“视图暴露过滤器”块的内容。将此块从内容区域移动到另一个。检查表格是否更改了位置。如果是,则将块移动到首选位置的区域(也许您必须定义该区域)。

于 2011-11-15T18:30:27.893 回答