如何在drupal主题中定位和移动内容
我正在为一个使用drupal创建的客户端对一个站点进行设计更改。看起来像Drupal7站点 我已经找到了主题文件。page.tpl.php包含page-ajaz.tpl.php 该文件具有以下代码如何在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
<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上方 在“块管理”页面中尝试查找类似“视图公开过滤器”的块。 将此块从内容区域移动到另一个区域。检查表单是否已更改位置。
如果是,请将块移动到首选位置的区域(可能您必须定义此区域)。尝试在块管理页面中查找类似“视图公开过滤器”的块。 将此块从内容区域移动到另一个区域。检查表单是否已更改位置。 如果是,将块移动到首选位置的区域(可能您必须定义此区域)