Feature request: sort list object by attribute value
Permalink Browser Info Environment
Hi, as per the subject line, this is more of a feature request than an issue.
Would it be possible to make this attribute save itself into the search index tables in the database, so that something like the below could be done?
Let's say I've got a file (called "File A") with three other files attached via an attribute called "related_files" that I've made using this package.
I'd then like to generate a file list that only shows files with a certain file assigned in it's "related_files" attribute:
$fl = new FileList();
$file = new File::getByID(123);
$fl->filterByAttribute('related_files', $file);
Even though I'm only passing through one file object in the third line and "File A" has three files in it's attribute, I'd like to still see "File A" in my file list.
Kind Regards,
Michael
Would it be possible to make this attribute save itself into the search index tables in the database, so that something like the below could be done?
Let's say I've got a file (called "File A") with three other files attached via an attribute called "related_files" that I've made using this package.
I'd then like to generate a file list that only shows files with a certain file assigned in it's "related_files" attribute:
$fl = new FileList();
$file = new File::getByID(123);
$fl->filterByAttribute('related_files', $file);
Even though I'm only passing through one file object in the third line and "File A" has three files in it's attribute, I'd like to still see "File A" in my file list.
Kind Regards,
Michael
Type: | Pre-Sale |
---|---|
Status: | New |