| 1 |
LEECH MODULE
|
| 2 |
|
| 3 |
Leech and its associated modules allow you to aggregate news from other
|
| 4 |
sites and import them as Drupal nodes on your own site.
|
| 5 |
|
| 6 |
REQUIREMENTS
|
| 7 |
The modules required for turning incoming RSS/ATOM feeds into nodes, consist of:
|
| 8 |
|
| 9 |
* leech.module
|
| 10 |
* node_template.module
|
| 11 |
|
| 12 |
The PHP CURL module must also be installed on your server's version of PHP. If
|
| 13 |
you are not sure if CURL is installed on your server, following the INSTALL
|
| 14 |
directions below will help you determine this. For more information about CURL,
|
| 15 |
see http://us2.php.net/curl/. For help installing CURL, consult your web host,
|
| 16 |
operating system documentation, or your favorite search engine.
|
| 17 |
|
| 18 |
An optional leech_yahoo_terms.module is available. See the REMARKS section
|
| 19 |
for details.
|
| 20 |
|
| 21 |
INSTALL
|
| 22 |
* Enable all the required modules mentioned above.
|
| 23 |
* Check the admin/settings/leech page to make sure that there is no warning
|
| 24 |
message about the CURL library not being installed. If you see no message, CURL
|
| 25 |
is installed on your server and you are good to go.
|
| 26 |
* Create the template for your feed items. Go to node/add/story and add a
|
| 27 |
story with a title like "template story" as the title and add some placeholder
|
| 28 |
text (like "template node") in the body. make sure you set the publishing
|
| 29 |
options to not published. Then, once you submit that node, stay on the node,
|
| 30 |
and you will see there is a new tab that appears next to the view ad edit tabs
|
| 31 |
which says "template". Click on template, and then scroll down and save the
|
| 32 |
template. You do not need to enter anything in the textareas.
|
| 33 |
* Go to admin/settings/content-types/page and enable the page content type
|
| 34 |
for leech under "Default leech news options" by selecting the story template
|
| 35 |
that you just made and select the other options in "Default leech news options"
|
| 36 |
fieldset to your liking.
|
| 37 |
|
| 38 |
REMARKS
|
| 39 |
You can optionally enable leech_yahoo_terms.module which will use the
|
| 40 |
Yahoo Terms API to add keywords on every article aggregated. You will need a
|
| 41 |
Yahoo ID to enter as an API key, which is free. See module's settings page for
|
| 42 |
more information.
|
| 43 |
* There may be some additional settings under admin/settings/leech or
|
| 44 |
you might want to look at for your purposes.
|
| 45 |
* You do not have to use "story" or "page" you can use other node types like CCK
|
| 46 |
if you wish.
|
| 47 |
* Feeds get parsed at cron time. For automatically "leeching" feed content into
|
| 48 |
your system, you need to configure cron. See http://drupal.org/cron.
|