How about evolving this into a field expire module?

So that we could expire specific fields in nodes. For example a filefield etc.

Comments

1kenthomas’s picture

I am accomplishing this via using a version of node expire as a custom module, using the resulting Rules trigger to change a field. Not ideal, but works.

-Ken

Vc Developer’s picture

I'm using the Node:Expired Filter and I'm forced to enter a date else I will not get any node to display. Views need to be able to check if there's a valid date and if not treat is as none expired.

dsnopek’s picture

Vc Developer,

There is a fix for the problem you describe in this issue: #1129996: Views: Setting "Node: Expired" to No will return no results (patch included)

Regards,
David.

Vc Developer’s picture

Thanks, that solved it!

arekanderu’s picture

Can you please share the details on how to achieve this? Thank you

Vc Developer’s picture

in sites/all/modules/node_expire.view.inc add the line 'accept_null' => TRUE, like this:

BEFORE:
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
'label' => t('Expired'),
'type' => 'yes-no',
),

AFTER:
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
'label' => t('Expired'),
'type' => 'yes-no',
'accept_null' => TRUE, <------------------------------------<<
),

.....should be around line 46 are so..., then run your update! I'm running Windows 2008 Server R2, so I edit the file by hand, I'm assuming you can do the same if your running Linux, but there is a patch command you can use (you can search the Drupal Doc's on how to use it), I was running Ubuntu 10.04 LTS and had to switch to Windows because I couldn't find a good streaming server and media software for it.