Использовании агрегатора RSS

Главные вкладки

Аватар пользователя sovarog sovarog 12 сентября 2007 в 18:16

Добрый день, вопрос по aggregator (у). Как сделать/какие строки изменить в модуле, что бы после вывода анонсов новостей на сайт, при переходе открывалось новое окно? не хочется терять посетителя :). Возможно кто то разбирался с модулем и есть решение?

Комментарии

Аватар пользователя sovarog sovarog 12 сентября 2007 в 18:55

Решение нашел на http://drupal.org/node/23857 Всем спс Smile

/*
<?php
          $teaser .= '<p><a href="'. check_url($item->link) .'">'. t('read more') ."</a></p>\n";
to
          $teaser .= '<p><a href="'. check_url($item->link) .'" target="_blank">'. t('read more') ."</a></p>\n";

  $output .= '<a href="'. check_url($item->link) .'">'. check_plain($item->title) ."</a>\n";
to
  $output .= '<a href="'. check_url($item->link) .'" target="_blank">'. check_plain($item->title) ."</a>\n";

  $output = '<a href="'. check_url($item->link) .'">'. check_plain($item->title) .'</a> <span class="age">'. t('%age old', array('%age' => format_interval(time() - $item->timestamp))) .'</span>';
to
  $output = '<a href="'. check_url($item->link) .'" target="_blank">'. check_plain($item->title) .'</a> <span class="age">'. t('%age old', array('%age' => format_interval(time() - $item->timestamp))) .'</span>';

  $output .= '<h3 class="feed-item-title"><a href="'. check_url($item->link) .'">'. check_plain($item->title) ."</a></h3>\n";
to
  $output .= '<h3 class="feed-item-title"><a href="'. check_url($item->link) .'" target="_blank">'. check_plain($item->title) ."</a></h3>\n";
*/