Forums / General / attribute_filter / Comment32311
Kristof Coomans
Sunday 09 October 2005 8:11:36 am
Filtering on node_id is currently not possible. But I think it wouldn't difficult to make this work. You can make an extended attribute filter, or you can patch the kernel.
In <i>kernel/classes/ezcontentobjecttreenode.php</i>, somewhere around line 913, there is:
switch ( $filterAttributeID ) {
After that, you can insert this code:
case 'node_id': { $filterField = 'node_id'; }break;
I think that should do it (but I didn't tested it).
You can also program support for sorting on node_id in a similar way in the function createSortingSQLStrings.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org