Forums / Developer / Attribute_filter / Comment43956
Kristof Coomans
Wednesday 24 August 2005 11:06:45 pm
The selection datatype seems to have support for attribute filtering (checked in eZ 3.6.1):
function &sortKey( &$contentObjectAttribute ) { return strtolower( $contentObjectAttribute->attribute( 'data_text' ) ); } function sortKeyType() { return 'string'; }
You can search a datatype's class code for the functions sortKeyType and sortKey, if you want to find out if they support attribute sorting and filtering. Or you can take a look at the ezcontentobject_attribute table of your database to see if there's something stored in either the sort_key_int or sort_key_string field.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org