RSS-канал на главной

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

Аватар пользователя pervocvet pervocvet 20 мая 2007 в 12:29

У меня появилась нужда в том,чтобы вывести полный текст из rss-канала на главную страницу, в виде ноды.
С помощью чего это можно сделать?
Я смотрел по форуму, нашел leech(но так и не смог настроить)и feedparser(тоже не смог).
У меня просьбы к пользователям Друпала:
1.Если кто использовал эти модули, опишите как вы устанавливали их и как выводили на главную станицу.
2.Есть ли другие методы?

Комментарии

Аватар пользователя Макс К. Макс К. 20 мая 2007 в 16:49

Установка модуля leech

1. Enable all the required modules.
2. Check the admin/settings/leech page to make sure that there is no warning
message about the CURL library not being installed.

3. Create new content type and call it "rss news".
4. New template by creating content using "rss news".
- title > "template story"; placeholder text body > "template node"
- make sure you set the publishing options to not published.
- Then, once you submit that node, stay on the node, and you will see
there is a new tab that appears next to the view ad edit tabs
which says "template". Click on template, and then scroll down and save the
template.
- In the PHP saving code area enter
<?php
$node->field_body[0]['value'] .= $node->body;
?>

5. Create new content type and call it "rss source".
6. Go to admin/settings/content-types/rss source and enable the page content type
for leech under "Default leech news options" by selecting the story template
that you just made and select the other options in "Default leech news options"
fieldset to your liking.

Видео установки:
http://www.streamcast.eu/cms/node/9013

Аватар пользователя pervocvet pervocvet 20 мая 2007 в 20:05

Попробовал leech, много лишнего.
А вот feedparser так и не поддался. Если честно, у меня сложности с английским. Не дается он мне. Прочитал я redme к парсеру,вроде сделал все как понял, а не работает шельмец. Может кто протянет русскую руку помощи :-).
Когда хочу добавить feed(http://xxx.com/admin/aggregator/add/feed), выводит такое сообщение
"warning: call_user_func_array(): First argumented is expected to be a valid callback, 'feedmanager_form_feed_add' was given in /home/ххх/public_html/includes/form.inc on line 218."