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

Type: Pre-Sale
Status: New
MichaelFD
View Replies:

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.1
Version Installed - 8.5.1
Database Version - 20190301133300

# concrete5 Packages
Add Multiple Pages (0.9.5), Block Designer (3.1.3), Debug Kit (0.9.5), ExchangeCore reCAPTCHA (1.1.1), Frank Download Analytics (1.0.0), Google Analytics (0.9.5), Multiple files attribute (1.0.6), Noindex Before Launch (1.1), Page Redirect (2.0), Page Selector Attribute (2.0), PDF Viewer (1.0.1), Vimeo Video (1.0.1)

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.38 (Win64) OpenSSL/1.1.1b PHP/7.2.16

# Server API
apache2handler

# PHP Version
7.2.16

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, readline, Reflection, session, SimpleXML, SPL, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 1024M
post_max_size - 8M
upload_max_filesize - 2M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.