D
D
Dima4jin2014-09-16 07:20:25
Drupal
Dima4jin, 2014-09-16 07:20:25

How to move title from common region to one of fields in drupal 7?

At the moment, the output of the page looks like this:
ff812aaadc02440c90c1ad7ebedcb3b3.PNG
Need to move h1 under the first field-name-field-img I'm working with an omega 3.x
theme that has an overridden template: region--content--article.tpl.php

<div<?php print $attributes; ?>>
  <div<?php print $content_attributes; ?>>
    <?php if ($tabs && !empty($tabs['#primary'])): ?><div class="tabs clearfix"><?php print render($tabs); ?></div><?php endif; ?>
    <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
    <?php print render($title_prefix); ?>
    <?php if ($title): ?>
    <?php if ($title_hidden): ?><div class="element-invisible"><?php endif; ?>
    <h1 class="title" id="page-title"><?php print $title; ?></h1>
    <?php if ($title_hidden): ?></div><?php endif; ?>
    <?php endif; ?>
    <?php print render($title_suffix); ?>
    <?php print $content; ?>
    <?php if ($feed_icons): ?><div class="feed-icon clearfix"><?php print $feed_icons; ?></div><?php endif; ?>
  </div>
</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drupby, 2014-09-16
@Dima4jin

you need to remove the title from region--content--article.tpl.php and display it in the node template in the right place

U
UksusoFF, 2014-09-16
@UksusoFF

Option: xandeadx.ru/blog/drupal/615

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question