How about evolving this into a field expire module?
So that we could expire specific fields in nodes. For example a filefield etc.
How about evolving this into a field expire module?
So that we could expire specific fields in nodes. For example a filefield etc.
Comments
Comment #1
1kenthomas commentedI 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
Comment #2
Vc Developer commentedI'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.
Comment #3
dsnopekVc 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.
Comment #4
Vc Developer commentedThanks, that solved it!
Comment #5
arekanderu commentedCan you please share the details on how to achieve this? Thank you
Comment #6
Vc Developer commentedin 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.