I needed export some nodes using features from a site with a fair number of nodes. Researching this I found:

#1626360: Features UI becomes unusable with large number of nodes

Rather than write a quick and dirty custom module, I decided to expand on this and create a new generic module which I've call node_export_features_ui. This suppies a UI to define various filters to determine the nodes that get displayed in the Features module UI. E.g., when creating or updating a feature that exports nodes.

Note: This is not an extension to the Feature's UI to support Node Export. Rather it's an external way to define the query parameters that go into listing the nodes using hook_query_alter and the query tag method described in the issue above.

I've packaged this as a patch that will add this module to the modules directory. It also makes one small change to the node_export_menu() function to allow local task tabs to be displayed off the main configuration page.

Here is the "README.txt" included in the patch that will be attached in comment after this posting.

-----------------------------------------------------------------------------------------------------

Node Export Features UI
=======================

This module works with the Node Export Features module to provide an easy to
use method of selecting nodes to export. It is based on this Node Export
issue: http://drupal.org/node/1626360

Currently, the feature module's UI does not support listing a large number of
nodes to select from. Sites with large numbers of nodes caused major UI and
server performance problems. Because of this, the node_export_feature module
currently limits the number of nodes in the Feature UI to only the first 250
nodes.

The current solution for changing what nodes to display is to write a custom
module. This module is for people who don't want to write a custom module.

When enabled, it adds a "Feature Configuration" tab on the Node Export settings
page. ( Admin->Configure->Content Authoring->Node Export )

In the Feature Configuration tab, you can select from a set of filters to
control what nodes get listed in the Feature modules UI. The filters are:

* Number of nodes to List:

Expand or shrink beyond the build in 250 nodes.

NOTE: Using a large number can cause server and UI performance problems.

* Filter By Content Type:

Only show nodes of the selected content types.

* Filter By Publishing Options:

Filter by published, promoted, and sticky status.

* Filter by Title:

Filter by title using an SQL 'LIKE' statement. E.g, %Test%One%

* Filter by UUID:

Supply a specific list of node UUIDs to show.

These filters are 'additive' so each one is an "AND" condition on the query.

Installation:

(Assumes patch get accepted and is part of distro.. ;) )

Install Node Export, then enable via the modules page (or drush or...)

Features Notes:

If you need to recreate a feature created with one or more of the filters set,
you will need to make sure that the Node Export Feature filters are the
same.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cgmonroe’s picture

Here's the patch.

Iztok’s picture

Tested on 7.x-3.0, can confirm it works. Thanks!

cspiker’s picture

Also tested and confirmed on 7.x-3.0. Thanks.

ron_s’s picture

Thanks for creating this patch, @cgmonroe. Works correctly for me with 7.x-3.0. It's a useful addition to the module and should be included as a new feature.

spidersilk’s picture

Worked great for me too! With four of us having tested it successfully, would it be OK to change its status to "reviewed and tested by the community"? How much feedback is needed for that?

Cristian.Andrei’s picture

Status: Needs review » Reviewed & tested by the community

tested it and it works as advertised. Updating status

scorchio’s picture

Confirmed to work well, thanks!

Anonymous’s picture

This worked well too! Awesome work @cgmonroe How can we get this incorporated Node Export?

lquessenberry’s picture

Make it so number 1.

  • danielb committed 6911417 on 7.x-3.x authored by cgmonroe
    Issue #2248361 by cgmonroe: Node Export Features UI sub-module
    
danielb’s picture

Status: Reviewed & tested by the community » Closed (fixed)

cgmonroe, you have git access to update it

pinueve’s picture

Patch applied on 7.x-3.0, then I Updated node-export module via module UI to 7.x-3.1 (module updated on march 6/2016)
Tested and confirmed on 7.x-3.1
works perfect, Thanks.

lquessenberry’s picture

Any chance we could see this as a sub-module or separate module?

petednz’s picture

awesome improvement - only thing i 'hoped' for but didn't spot was ability to filter by > nid or by > timestamp for created - either of which would mean very easy to restrict list to the 'most recent' as this would often be the case for which nodes need shifting across - but that is definitely not a grumble just an 'out aloud' thought in case i can offer it back.