I am working on a site which uses a state machine where early states of a node do not allow comments to be added (therefore default for the type has comments disabled). But once the date on the node has passed, i enable comments for that node (via cron).

This all works fine but i am now just realizing that i don't think i can do a views filter on whether comments are enabled or not. I guess i can do a psuedo admin field on the node that also gets set when i set the comment field and then filter on that value.. but would be handy if i could just filter on the setting.

ALSO - this brings up another more general idea... shouldn't views allow me to define my own PHP filter. But i'll rais another issue on this.

Peter Lindstrom
LiquidCMS - Content Management Solution Experts

Comments

merlinofchaos’s picture

It didn't occur to me to put a filter for this into Views 2. I guess it could be valuable information.

merlinofchaos’s picture

Status: Active » Fixed

THis is now in Views 2 dev. Will go out in beta3.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.