Along with changing of the seasons, I decided to move my current web log from Drupal over to WP.
The features for importing posts in to Word Press limited me to using Drupal’s RSS feed to download all of the current posts and import them in. While it sounds good to start with, I ended up stuck with the fact that Drupal happily limits you to the number of feed items to a maximum of 30, no matter what you do.
I located the actual values to the Drupal configuration at “modules/system/system.admin.inc”. Read more on what I did to change it.
The actual array that you’re looking for will be right at line 1442 (or so):
$form['feed_default_items'] = array(
'#type' => 'select',
'#title' => t('Number of items in each feed'),
'#default_value' => variable_get('feed_default_items', 60),
'#options' => drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30)),
'#description' => t('Default number of items to include in each feed.')
);
See the values in the array? Add in the top number you’re anticipating on using. For me, it was 50, so mine looks like this now:
$form['feed_default_items'] = array(
'#type' => 'select',
'#title' => t('Number of items in each feed'),
'#default_value' => variable_get('feed_default_items', 60),
'#options' => drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 50)),
'#description' => t('Default number of items to include in each feed.')
);
Save your changes, and then refresh the RSS configuration page. hit the drop down, select 50, and okay the change.
Once that’s done you can have an RSS feed 50 items long, if you would like.
And, for the record, WP gives you a box where you can type in the number you would like. That’s just a bit easier.
Hope this helps.
tom
Comments are closed.