| 1 |
--------
|
| 2 |
|
| 3 |
AGGREGATOR2.MODULE and AGGREGATOR2_LOGO.MODULE - INSTALLATION -- PLEASE READ:
|
| 4 |
|
| 5 |
--------
|
| 6 |
|
| 7 |
In order to properly install aggregator2 you should configure taxonomy and setup at least
|
| 8 |
one vocabulary with terms specific to aggregator2 feeds and items.
|
| 9 |
This is not essential but recommended or handling the nodes created by aggregator2 feeds
|
| 10 |
can become difficult if there are many feeds.
|
| 11 |
|
| 12 |
It is not essential to understand PHP, Drupal themeing, MySql or the core Drupal modules ECT.
|
| 13 |
Again, fully understanding these things is not essential to operation of aggregator2 or
|
| 14 |
Drupal for that matter. One can operate a boat without knowledge of Archimedes principal
|
| 15 |
and one can use aggregator2 and Drupal without integral knowledge of PHP.
|
| 16 |
A boat floats and Drupal works and if you don't care why don't worry about it.
|
| 17 |
However if you want to modify your boat or extend Drupal that's different.
|
| 18 |
|
| 19 |
The following document attempts to make the installation process simple and it is simple.
|
| 20 |
Configuration might seem slightly complex at first. It really isn't and you can't make huge
|
| 21 |
mistakes so remain calm.
|
| 22 |
|
| 23 |
Please follow these steps carefully and exactly as written before filing a Support request.
|
| 24 |
It is advised that you review this entire document before You try and install this module.
|
| 25 |
|
| 26 |
-----------
|
| 27 |
|
| 28 |
Preparation:
|
| 29 |
|
| 30 |
-----------
|
| 31 |
|
| 32 |
a.) Setup a Vocabulary and Specify some terms to associate with Feeds and Feed-items.
|
| 33 |
You can setup separate terms/vocabularies for aggregator2-feeds and for aggregator2-items.
|
| 34 |
But it's good to have one vocabulary for both, and create term for each feed - that will help
|
| 35 |
You quickly find all items from given feed.
|
| 36 |
|
| 37 |
------------
|
| 38 |
|
| 39 |
Installation:
|
| 40 |
|
| 41 |
------------
|
| 42 |
|
| 43 |
1) The first thing to do is to update your database, adding the 'aggregator2_feed`
|
| 44 |
and aggregator2_item` tables.
|
| 45 |
This can easily be done from the command line by copying the included
|
| 46 |
'aggregator2.mysql' file to your webserver, then running a command something
|
| 47 |
like:
|
| 48 |
|
| 49 |
$ mysql -u<username> -p<password> <database> < aggregator2.mysql
|
| 50 |
|
| 51 |
For example, if your username is 'Drupal', your password is 'secret', and
|
| 52 |
Your database is called 'Drupal'; you'd type the following command:
|
| 53 |
|
| 54 |
$ mysql -udrupal -psecret drupal < aggregator2.mysql
|
| 55 |
|
| 56 |
OR
|
| 57 |
|
| 58 |
You can simply run the scripts provided -- "aggregator2.mysql" in a tool for managing MySQL.
|
| 59 |
The DBA module may be installed from the modules directory of Drupal.org without
|
| 60 |
having to have command line access scripts window or in PhpMyAdmin
|
| 61 |
|
| 62 |
2) Upload 'aggregator2.module' into your modules/ directory.
|
| 63 |
|
| 64 |
2.5) Upload "aggregator2_logo.module' into your modules/ directory.
|
| 65 |
NOTE this is optional but highly recommended. Even if you don't want to use the functionality
|
| 66 |
right away go ahead and drop it in the modules directory with the main module.
|
| 67 |
NOTE. The aggregator2_logo.module provides functionality to allow you to associate
|
| 68 |
images or logos with specific feeds that are passed to the feed items as nodes are created.
|
| 69 |
The effect is to in essence "brand" each feed-item.
|
| 70 |
|
| 71 |
3) Now you need to log in to your site and enable the new aggrregator2.module and
|
| 72 |
aggregator2_logo.module.
|
| 73 |
(Go to: administer -> modules: then check 'aggregator2 and aggregator2_logo')
|
| 74 |
|
| 75 |
4. Go to the 'access control' and enable the permissions to suit.
|
| 76 |
NOTE you need to enable the "access feed items' for all users or there will be weirdness.
|
| 77 |
|
| 78 |
5. Go to settings for aggregator2 and aggregator2 logo and make adjustments to suit.
|
| 79 |
The URLs are:
|
| 80 |
|
| 81 |
admin/settings/aggregator2
|
| 82 |
|
| 83 |
admin/settings/aggregator2_logo
|
| 84 |
|
| 85 |
"Create drupal blocks for each feed":
|
| 86 |
is the same block creation functionality as aggregator.
|
| 87 |
If you want blocks on the sides be sure to check this and then you can
|
| 88 |
enable the different blocks in the block admin section.
|
| 89 |
|
| 90 |
"Number of feeds to update at a time:"
|
| 91 |
This is for sites with allot of feeds, allot of traffic,
|
| 92 |
allot of something that can't handle long cron runs.
|
| 93 |
The recommended setting is "ALL" unless you run into problems.
|
| 94 |
|
| 95 |
On the aggregator2_logo settings page you will find two check boxes and they are self explanatory.
|
| 96 |
|
| 97 |
"Add image to feed description"
|
| 98 |
"Add image to feed items description"
|
| 99 |
|
| 100 |
-------------
|
| 101 |
|
| 102 |
Configuration:
|
| 103 |
|
| 104 |
-------------
|
| 105 |
|
| 106 |
NODE CREATION AND DISPLAY BEHAVIOR:
|
| 107 |
|
| 108 |
6) Configure the aggregator2 module for publishing the content the way that suits.
|
| 109 |
You have a number of options at your disposal.
|
| 110 |
Think about how Slashdot works for a moment to understand what we mean in this section.
|
| 111 |
|
| 112 |
The Slashdot publishing process or workflow is roughly:
|
| 113 |
_>> user submits teaser and article link -->>
|
| 114 |
Editorial staff read the submissions and chooses which ones are elevated
|
| 115 |
to the front page and when that elevation occurs.
|
| 116 |
The entire system is quite nice and very functional however it is manual and
|
| 117 |
requires a full time staff.
|
| 118 |
|
| 119 |
Aggregator2 allows you to configure roughly the same thing only without the full time staff.
|
| 120 |
The process is:
|
| 121 |
|
| 122 |
1. Subscribe to feeds
|
| 123 |
2. Choose which feeds and how many items are elevated from each feed to the front page
|
| 124 |
on each cron.
|
| 125 |
|
| 126 |
Allot effort was put into making it flexible.
|
| 127 |
You may want to only allow a certain amount of the nodes created by a feed
|
| 128 |
to elevate to the front page so that there is a mix of content from various feeds
|
| 129 |
on the first page.
|
| 130 |
Or you may want certain feeds to create items that NEVER elevate to the front.
|
| 131 |
|
| 132 |
|
| 133 |
Settings:
|
| 134 |
|
| 135 |
URL: This is the feed link or url of the Atom or RSS feed
|
| 136 |
|
| 137 |
Image link: A link to the logo or image you want associated. It can be on or off site.
|
| 138 |
|
| 139 |
Update interval: How many hours in between cron to you want before this feed will once again
|
| 140 |
check for new items.
|
| 141 |
|
| 142 |
Discard feed items older than: The time feed items should be kept.
|
| 143 |
Older items will be automatically discarded.
|
| 144 |
|
| 145 |
Discard only items not published currently
|
| 146 |
|
| 147 |
Apply changes to already existing items: Checkbox that will only be shown after items
|
| 148 |
have been created and is not visible on first run. If set, changes to categories will be
|
| 149 |
applied also to already existing items.
|
| 150 |
|
| 151 |
Select categories to be associated with aggregated items
|
| 152 |
|
| 153 |
Update existing items: If enabled, aggragator2 will update already existing items,
|
| 154 |
overwriting any changes done between cron runs.
|
| 155 |
|
| 156 |
Publish new items: If enabled, aggragator2 will mark each new item as published.
|
| 157 |
|
| 158 |
Promote items: Select how many of aggregated items should be promoted to front page.
|
| 159 |
When new items are created old ones will be taken out from front page.
|
| 160 |
|
| 161 |
Item date source: Select which date will be used for aggregated items.
|
| 162 |
If "Feed" is selected, Aggregator2 module will try to find date in feed, and if not found,
|
| 163 |
current date will be used. If "Current" is selected, date of creation of items will always
|
| 164 |
be set to the one at which items are aggregated.
|
| 165 |
|
| 166 |
Show "full article"/"source site" link: Select place(s) where link to full article
|
| 167 |
(for news items) or source site (for news feeds) will be shown.
|
| 168 |
|
| 169 |
Description: this field will keep description of feed which will be found in aggregated data.
|
| 170 |
If You want to put own description do that here, aggregator2 will not override Your changes.
|
| 171 |
|
| 172 |
-------------
|
| 173 |
|
| 174 |
Hints:
|
| 175 |
|
| 176 |
-------------
|
| 177 |
|
| 178 |
Aggregator2 has several optional settings that control the behavior of the feeds during
|
| 179 |
the initial update which is when the first items are created from the main feed.
|
| 180 |
Some of these settings control the behavior on subsequent updates that are performed
|
| 181 |
during cron runs according to your settings such as update interval and the total number of
|
| 182 |
feeds you set to be updated per cron run which is set on the aggregator2 settings page
|
| 183 |
(admin/settings/aggregator2).
|
| 184 |
|
| 185 |
Among the settings that control this behavior are
|
| 186 |
"Update interval",
|
| 187 |
"Discard feed items older than...",
|
| 188 |
"Discard only items not published [radio box]",
|
| 189 |
"Update existing items",
|
| 190 |
"Publish new items",
|
| 191 |
"Item date source"
|
| 192 |
|
| 193 |
If "Update Existing Items" set incorrectly it can affect the performance of your installation
|
| 194 |
and rarely your entire server which may raise the ire of your ISP or system admin.
|
| 195 |
Please understand what takes place during cron.
|
| 196 |
For each feed that you have checked "Update Existing Items" aggregator2 checks to see
|
| 197 |
if in fact all the old, already created items have been updated.
|
| 198 |
If they have been it will update accordingly.
|
| 199 |
This is only necessary in rare circumstances -- e.g. event listings that are subject
|
| 200 |
to change or blogs that use natural paths based on titles or other things that are updated often.
|
| 201 |
Note that most blogs don't update the titles of the posts even if they on rare occasions
|
| 202 |
do update the post itself. So for the most part you can safely leave this setting in the default,
|
| 203 |
unchecked, state.
|
| 204 |
|
| 205 |
So if you have allot of feed and have for whatever reason checked the "update the existing items"
|
| 206 |
radio box you may experience a small to severe performance degradation at cron runs
|
| 207 |
depending on server speed, number of feeds ect.. the usual stuff.
|
| 208 |
|
| 209 |
So leave it unchecked if you are unsure.
|