Как в блоге сделать заголовок в самом верху?

6 октября 2015 в 4:16
Аватар пользователя Evgeni4 Evgeni4 0 19

Всем привет. Подскажите пожалуйста, нужно в блоге перенести с низу в верх заголовок темы и прочие материалы (скрин 1), все перерыл, так и не могу разобраться, я так понимаю где-то в шаблоне подрупалить?)
В настройках Node я так понимаю все ок (скрин 2)

заранее спасибо за любую информацию

Комментарии

посмотрите на закладке "Управление отображением" в какой последовательности выводятся поля Заголовка и image

6 октября 2015 в 8:05

Да это тоже смотрел, там содержимое меняется местами которое находиться внутри данной статьи, т.е. если перейти по ссылке читать далее. Вот такие точно настройки не могу найти как раз для начальной страницы блога, чтобы передвинуть все заголовки вверх

10 ноября 2015 в 11:50

"Evgeni4" wrote:
неа нету, есть только
node--page.tpl , node--portfolio.tpl

что ж Вы не сказали, что еще есть node_teaser.tpl.php ???

в нем кусок кода:

  <?php
  
if (!empty($content['field_image'])) {
    print 
render($content['field_image']);
  }
  
?>
  <div class="entry_date">
    <div class="day"><?php print format_date($node->created'custom''d'); ?></div>
    <div class="month"><?php print format_date($node->created'custom''M'); ?></div>
    <?php if (!empty($content['field_image'])): ?>
      <div class="post-icon"><i class="icon-picture"></i></div>
    <?php endif; ?>
    <?php print $user_picture?>
  </div>

  <div class="entry_c">

    <?php print render($title_prefix); ?>
    <?php if (!$page): ?>
      <div class="entry_title">
        <h2<?php print $title_attributes?>><a href="<?php print $node_url?>"><?php print $title?></a></h2>
      </div>

    <?php endif; ?>
    <?php print render($title_suffix); ?>

7 октября 2015 в 8:17

Да есть оказывается такой, нашел)))), я нуб в этом)))
Вы гений! спасибо вам огромное)) передвинул вниз код

<?php
  
if (!empty($content['field_image'])) {
    print 
render($content['field_image']);
  }
?>
<?php?>
<div id="node-<?php print $node->nid?>" class="<?php print $classes?> clearfix"<?php print $attributes?>>

    <div class="entry_date">
    <div class="day"><?php print format_date($node->created'custom''d'); ?></div>
    <div class="month"><?php print format_date($node->created'custom''M'); ?></div>
    <?php if (!empty($content['field_image'])): ?>
      <div class="post-icon"><i class="icon-picture"></i></div>
    <?php endif; ?>
    <?php print $user_picture?>
  </div>

  <div class="entry_c">

    <?php print render($title_prefix); ?>
    <?php if (!$page): ?>
      <div class="entry_title">
        <h2<?php print $title_attributes?>><a href="<?php print $node_url?>"><?php print $title?></a></h2>
      </div>

    <?php endif; ?>
    <?php print render($title_suffix); ?>

    <?php if ($display_submitted): ?>
      <div class="submitted">
        <ul class="entry_meta clearfix">
          <li><i class="icon-calendar"></i><?php print $date?></li>
          <li><span>/</span><i class="icon-user"></i><?php print $name?></li>
          <?php if (!empty($content['field_tags'])): ?>
            <?php hide($content['field_tags']); ?>
            <li><span>/</span><i class="icon-copy"></i><?php print coworker_format_comma_field('field_tags'$node); ?></li>
          <?php endif; ?>

          <?php if (!empty($node->comment_count)): ?>
            <li><span>/</span><a href="<?php print $node_url?>#comments"><i class="icon-comments"></i><?php print $node->comment_count?> <?php print t('Comments'); ?></a></li>
          <?php endif; ?>
        </ul>

      </div>
    <?php endif; ?>
<?php
  
if (!empty($content['field_image'])) {
    print 
render($content['field_image']);
  }
  
?>
    <div class="entry_content content"<?php print $content_attributes?>>
      <?php
      
// We hide the comments and links now so that we can render them later.
      
hide($content['comments']);
      
hide($content['links']);
      print 
render($content);
      
?>

    </div>
  </div>
  <?php print render($content['comments']); ?>

</div>?>

и все заработало как надо)))

10 ноября 2015 в 11:50

Извиняюсь за назойливость,
терзает все меня еще один, последний вопрос, возможно тоже по горячим следам поможете.

где возможно так же подправить, чтобы комментарии были такого вида, как здесь т.е как на скрине ниже

есть файл comment.tpl

<?php?>
<div class="<?php print $classes?> clearfix"<?php print $attributes?>>
  <?php print $picture ?>

  <?php if ($new): ?>
    <span class="new"><?php print $new ?></span>
  <?php endif; ?>

  <?php print render($title_prefix); ?>
  
  <?php print render($title_suffix); ?>

  <div class="submitted">
    <?php print $permalink?>
    <?php print $submitted?>
  </div>

  <div class="content"<?php print $content_attributes?>>
    <?php
      
// We hide the comments and links now so that we can render them later.
      
hide($content['links']);
      print 
render($content);
    
?>
    <?php if ($signature): ?>
    <div class="user-signature clearfix">
      <?php print $signature ?>
    </div>
    <?php endif; ?>
  </div>

  <?php print render($content['links']) ?>
</div>?>

10 ноября 2015 в 11:50