I have 10 feeds (more) on my site, and about 3000 news items per feed.
there are a situation? when i need to delete a few items by hand. In mode "delete items" I have a very long list with all items from feed.

I think, that need to create a pagination, or lite filter for items ( last 10, last 50, last 100, all items) for more quick, short form.

What you think about it?

Comments

alex_b’s picture

Excellent feature request.

Patches would be highly appreciated.

Alex

toologic’s picture

Lets start from first step.

leech.module (5.x-1.x-dev from 18 apr) row 459

  $result = db_query('SELECT n.title, n.nid FROM {node} n LEFT JOIN {leech_news_item} i ON i.nid = n.nid WHERE i.fid = %d ORDER BY  n.title', $feed->nid);

need change on

  $result = db_query('SELECT n.title, n.nid FROM {node} n LEFT JOIN {leech_news_item} i ON i.nid = n.nid WHERE i.fid = %d ORDER BY  n.created DESC', $feed->nid);

the better look (and search) if items sorted on date.created ;) older - to top, earler - down.

and row 467 changed on
'#default_value' => FALSE, // array_keys($items),

If i need to delete 2 or 5 items, it is early make 2 or 5 click for check, but not 2998 click to uncheck. ;)

toologic’s picture

Also i make next change in function leech_news_page_delete_confirm()

To create not list of node titles, but list of links on nodes
... in row 462 delete

    $items[$item->nid] = $item->title;

insert

    $items[$item->nid] = l($item->title, 'node/' .$item->nid, array());
toologic’s picture

As variant of developing form for delete (promo, publish\unpublish) feed items you can use a form from Admin\content

Just altered filter-form by adding field "feeds list".

And change link "delete items" from each feed on "manage items"