Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在drupal主题中定位和移动内容_Drupal_Drupal Modules_Drupal Themes - Fatal编程技术网

如何在drupal主题中定位和移动内容

如何在drupal主题中定位和移动内容,drupal,drupal-modules,drupal-themes,Drupal,Drupal Modules,Drupal Themes,我正在为一个使用drupal创建的客户端对一个站点进行设计更改。看起来像Drupal7站点 我已经找到了主题文件。page.tpl.php包含page-ajaz.tpl.php 该文件具有以下代码 <div <?php print drupal_attributes($attr) ?>> <?php if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { ?> <ti

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

我已经找到了主题文件。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变量中的表单移动到H1页面标题上方

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


我很难弄清楚的是,如何移动这个模块生成的表单,使其显示在标题H1上方

在“块管理”页面中尝试查找类似“视图公开过滤器”的块。 将此块从内容区域移动到另一个区域。检查表单是否已更改位置。
如果是,请将块移动到首选位置的区域(可能您必须定义此区域)。

尝试在块管理页面中查找类似“视图公开过滤器”的块。 将此块从内容区域移动到另一个区域。检查表单是否已更改位置。 如果是,将块移动到首选位置的区域(可能您必须定义此区域)